From 822aa094a1022926631690ebfd2be3f405f4e4c2 Mon Sep 17 00:00:00 2001 From: op-ct Date: Mon, 10 Jul 2023 18:16:01 -0400 Subject: [PATCH] Fix tag release bug (#209) --- .github/workflows/tag_deploy_rubygem.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag_deploy_rubygem.yml b/.github/workflows/tag_deploy_rubygem.yml index 5acdeb7..e984772 100644 --- a/.github/workflows/tag_deploy_rubygem.yml +++ b/.github/workflows/tag_deploy_rubygem.yml @@ -158,10 +158,13 @@ jobs: id: create_release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + IS_PRERELEASE: ${{ steps.tag-check.outputs.prerelease }} run: | echo "${RELEASE_MESSAGE}" > /tmp/.commit-msg.txt args=(--file /tmp/.commit-msg.txt) - [[ ${{ steps.tag-check.outputs.prerelease }} == yes ]] && args+=(--prerelease) + [[ $IS_PRERELEASE == yes ]] && args+=(--prerelease) + + hub release create ${args[@]} "$TARGET_TAG" deploy-rubygem: name: Deploy RubyGem Release