We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89887d3 + 2fac26a commit 49bfdceCopy full SHA for 49bfdce
1 file changed
.github/workflows/enforce-canary.yml
@@ -0,0 +1,17 @@
1
+name: Enforce Canary as PR Source
2
+
3
+on:
4
+ pull_request:
5
+ types: [opened, reopened, synchronize]
6
+ branches: [main]
7
8
+jobs:
9
+ check-branch:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Ensure PR source is canary
13
+ run: |
14
+ if [[ "${{ github.head_ref }}" != "canary" ]]; then
15
+ echo "PRs to main must originate from the canary branch."
16
+ exit 1
17
+ fi
0 commit comments