Skip to content

Commit bc69693

Browse files
authored
Configure Cirrus Branch Guard (flutter#2492)
1 parent af7f798 commit bc69693

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/branch-guard.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)