Auto-close PRs on subtree-splits #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify Packages | |
on: | |
pull_request: | |
paths: | |
- src/** | |
permissions: | |
contents: read | |
jobs: | |
verify: | |
name: Verify Packages | |
runs-on: Ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Fetch branch from where the PR started | |
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | |
- name: Verify subtree-splits are auto-closed | |
run: | | |
php .github/sync-packages.php | |
git add src/ | |
git diff --staged --exit-code || (echo '::error::Please run "php .github/sync-packages.php".' && exit 1) |