Skip to content

Commit 18091ae

Browse files
committed
🧪 Use base_ref @ PR base sanity check
1 parent 64aa2b5 commit 18091ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ jobs:
3535
steps:
3636
- name: Fail on PRs against illegal branches
3737
if: >-
38-
github.event_name == 'pull_request'
39-
&& github.ref_name == github.event.repository.default_branch
38+
github.event_name == 'pull_request' &&
39+
github.base_ref == format(
40+
'refs/heads/{0}',
41+
github.event.repository.default_branch
42+
)
4043
run: exit 1
4144

4245
fail-fast:

0 commit comments

Comments
 (0)