Skip to content

Commit 08a2151

Browse files
committed
Fail build-publish workflow if wrong branch is tagged
1 parent d66bc7f commit 08a2151

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ jobs:
5656
with:
5757
tag: ${{ github.ref_name }}
5858
assert: true
59+
- name: Fail if git tag is not from allowed branches
60+
uses: smartcontractkit/.github/actions/guard-tag-from-branch@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
61+
with:
62+
tag: ${{ github.ref_name }}
63+
branch-regex: '^(develop|release\/.*)'
5964

6065
build-sign-publish-chainlink:
6166
needs: [checks]

0 commit comments

Comments
 (0)