Skip to content

Commit 2c13cdc

Browse files
committed
Use ref, not label
1 parent 5c016ad commit 2c13cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/create-new-tag.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
3737
// This regex needs to kept in-sync with the pattern in create-release-pr.yaml
3838
const regex = /^automation-create-release-(.*)$/i
39-
const parsed_version = context.payload.pull_request.head.label.match(regex)
39+
const parsed_version = context.payload.pull_request.head.ref.match(regex)
4040
4141
if (!parsed_version || !parsed_version[1].length) {
4242
core.setFailed('Workflow not called from an appropriate branch name')

0 commit comments

Comments
 (0)