Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
fix: tag_name
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasolerr committed May 28, 2024
1 parent 59c6102 commit bc54943
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
with:
config-path: .github/release-drafter.yml

- name: Set Release Tag
id: set_release_tag
run: echo "::set-output name=tag_name::$(cat .github/release-drafter.yml | grep -oP 'tag-template: \K.*' | sed 's/\$NEXT_PATCH_VERSION/v0.1.0/')"

publish:
needs: generate-release-notes
runs-on: ubuntu-latest
Expand All @@ -43,8 +47,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.release_notes.outputs.version }}
release_name: ${{ steps.release_notes.outputs.version }}
tag_name: ${{ steps.set_release_tag.outputs.tag_name }}
release_name: ${{ steps.set_release_tag.outputs.tag_name }}
draft: false
prerelease: false

Expand Down

0 comments on commit bc54943

Please sign in to comment.