Skip to content

Commit

Permalink
Fix github action regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nirantak committed Aug 12, 2021
1 parent 25c251a commit 97afad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Get Changelog
run: |
awk -v ver=${GITHUB_REF#refs/*/} '
/^## [v/ { if (p){exit}; if ($2 ~ ver){p=1; next} } p && NF
/^## \[v/ { if (p){exit}; if ($2 ~ ver){p=1; next} } p && NF
' CHANGELOG.md > CURRENT_CHANGELOG.txt
cat CURRENT_CHANGELOG.txt
Expand Down

0 comments on commit 97afad9

Please sign in to comment.