ci: change workflow if statement syntax

This commit is contained in:
Ben Grande 2024-07-01 12:24:27 +02:00
parent ba5193126e
commit 51424a47e6
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -14,10 +14,6 @@ on:
- reopened - reopened
- synchronize - synchronize
concurrency:
group: ci-${{ github.ref }}-1
cancel-in-progress: true
jobs: jobs:
lint: lint:
strategy: strategy:
@ -47,10 +43,9 @@ jobs:
if echo "${committer}" | grep -q "^GitHub$"; then if echo "${committer}" | grep -q "^GitHub$"; then
echo "committer_gitweb=true" >> $GITHUB_OUTPUT echo "committer_gitweb=true" >> $GITHUB_OUTPUT
echo "Commit was made using the GitHub WebUI" >&2 echo "Commit was made using the GitHub WebUI" >&2
exit 1
fi fi
- name: Block commits made using the GitHub WebUI - name: Block commits made using the GitHub WebUI
if: steps.check_committer.outputs.committer_gitweb == "true" if: steps.check_committer.outputs.committer_gitweb == 'true'
uses: peter-evans/close-pull@v3 uses: peter-evans/close-pull@v3
with: with:
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length