Skip to content

Commit 64aa2b5

Browse files
committed
🧪 Disallow PRs against non-default branches
1 parent b223cbb commit 64aa2b5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/reusable-smoke-test.yml

+13
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ env:
2626
PYTEST_THEME_MODE
2727
2828
jobs:
29+
legit-pr:
30+
31+
runs-on: ubuntu-latest
32+
33+
timeout-minutes: 1
34+
35+
steps:
36+
- name: Fail on PRs against illegal branches
37+
if: >-
38+
github.event_name == 'pull_request'
39+
&& github.ref_name == github.event.repository.default_branch
40+
run: exit 1
41+
2942
fail-fast:
3043

3144
strategy:

0 commit comments

Comments
 (0)