Why doesn't 'false' boolean work?

I’ve got the following in my workflow file:

    runs-on: ubuntu-latest
    # Disabled for the time being due to https://github.com/Mudlet/Mudlet/pull/4299
    if: ${{ github.repository_owner == 'Mudlet' }} && false

And it still runs. Why is that? This used to work before.

The false is outside the expression (the part wrapped in ${{ ... }}). So you need to do something like:

if: ${{ github.repository_owner == 'Mudlet' && false }}
1 Like