Skip to content

Commit

Permalink
fix: pin default branch check
Browse files Browse the repository at this point in the history
Signed-off-by: Noam Gal <noam.gal@octopus.com>
ATGardner committed Jul 15, 2024
1 parent f4186a6 commit 59c9442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/default-branch-check.yaml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:
steps:
- name: fail if base branch is not default branch
if: ${{ github.event.pull_request.base.ref != github.event.repository.default_branch }}
uses: actions/github-script@v3
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
core.setFailed("Base branch of the PR - ${{ github.event.pull_request.base.ref }} is not a default branch. Please reopen your PR to ${{ github.event.repository.default_branch }}")

0 comments on commit 59c9442

Please sign in to comment.