Skip to content

Commit

Permalink
ci: Fix auto release tag workflow
Browse files Browse the repository at this point in the history
By supplying tag message file via additional Python step. This allows to
support `backticks` in tag messages.
  • Loading branch information
playpauseandstop committed Jun 22, 2022
1 parent c55f5e2 commit eccb733
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,18 @@ jobs:
name: "Run badabump"
run: "badabump-ci prepare_tag"

- name: "Save tag message into the file"
run: |
with open("./tag_message.txt", "w+") as handler:
handler.write("""${{ steps.badabump.outputs.tag_message }}""")
shell: "python"

- name: "Create release tag from latest commit"
run: |
set -euo pipefail
git config user.name badabump-release-bot[bot]
git config user.email badabump-release-bot[bot]@users.noreply.github.com
cat > ./tag_message.txt <<EOF
${{ steps.badabump.outputs.tag_message }}
EOF
git tag -a ${{ steps.badabump.outputs.tag_name }} -F ./tag_message.txt
git push --tag

0 comments on commit eccb733

Please sign in to comment.