Skip to content

Commit

Permalink
Add a rollup action to make branch protection better / bump to WordPr…
Browse files Browse the repository at this point in the history
…ess 6.6 and audit fix (#393)

* Add a rollup action to make branch protection better

* Bumping scripts to 6.6

* Audit fix

* Remove permissions
  • Loading branch information
srtfisher authored Nov 1, 2024
1 parent c41fad3 commit 196d66f
Show file tree
Hide file tree
Showing 3 changed files with 1,912 additions and 4,170 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/all-pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,23 @@ jobs:
php-version: '${{ matrix.php }}'
wordpress-version: '${{ matrix.wordpress }}'
skip-wordpress-install: 'true'
# This required job ensures that all PR checks have passed before merging.
all-pr-checks-passed:
name: All PR checks passed
needs:
- pr-tests
runs-on: ubuntu-latest
if: always()
steps:
- name: Check job statuses
run: |
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
echo "One or more jobs failed"
exit 1
elif [[ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
echo "One or more jobs were cancelled"
exit 1
else
echo "All jobs passed or were skipped"
exit 0
fi
Loading

0 comments on commit 196d66f

Please sign in to comment.