From eccb73392fc28d7cb863a92ab4c94ce1a46c88bc Mon Sep 17 00:00:00 2001 From: Igor Davydenko Date: Wed, 22 Jun 2022 15:49:10 +0200 Subject: [PATCH] ci: Fix auto release tag workflow By supplying tag message file via additional Python step. This allows to support `backticks` in tag messages. --- .github/workflows/release_tag.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release_tag.yml b/.github/workflows/release_tag.yml index ed4032e..567bce6 100644 --- a/.github/workflows/release_tag.yml +++ b/.github/workflows/release_tag.yml @@ -44,6 +44,12 @@ 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 @@ -51,9 +57,5 @@ jobs: git config user.name badabump-release-bot[bot] git config user.email badabump-release-bot[bot]@users.noreply.github.com - cat > ./tag_message.txt <