Skip to content

Commit

Permalink
Making this more readable now that it's an expression
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple committed Aug 8, 2024
1 parent 099826b commit b00342b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/third-party-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
name: Check For Submodule Update Label
runs-on: ubuntu-latest
steps:
- if: ${{ contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') == false }}
- if: ${{ !contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') }}
name: Fail
run: |
echo This pull request attempts to update submodules without the changing-submodules-on-purpose label. Please apply that label if the changes are intentional, or remove those changes.
exit 1
- if: ${{ contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') == true }}
- if: ${{ contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') }}
name: Success
run: |
echo PR looks good.
Expand Down

0 comments on commit b00342b

Please sign in to comment.