Skip to content

Commit e97a325

Browse files
author
Håvard Moen
authored
fix(ci): correct extraction of workflow tag in GitHub Actions workflow file (#189)
1 parent ac2d782 commit e97a325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
then
6767
workflow_file="$(grep -El "^name: (\"|)${GITHUB_WORKFLOW}(\"|)$" .github/workflows/*)"
6868
fi
69-
workflow_tag="$(awk -F @ '/github-workflow-semantic-release/ {print $2}' "${workflow_file}")"
69+
workflow_tag="$(awk -F '[[:space:]@]+' '/github-workflow-semantic-release/ {print $4}' "${workflow_file}")"
7070
echo "workflow_tag=${workflow_tag}" >> $GITHUB_OUTPUT
7171
7272
commitlint:

0 commit comments

Comments
 (0)