We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af7f798 commit bc69693Copy full SHA for bc69693
1 file changed
.github/workflows/branch-guard.yml
@@ -0,0 +1,17 @@
1
+on:
2
+ pull_request: # to update newly open PRs or when a PR is synced
3
+ check_suite: # to update all PRs upon a Check Suite completion
4
+ type: ['completed']
5
+
6
+name: Branch Guard
7
+jobs:
8
+ branch-guard:
9
+ name: Branch Guard
10
+ if: github.event.check_suite.head_branch == 'master' || github.event.pull_request.base.ref == 'master'
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: cirrus-actions/[email protected]
14
+ with:
15
+ appsToCheck: Cirrus CI # or any other App name (can be a comma separated list of names)
16
+ env:
17
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments