Skip to content

Commit

Permalink
ci(release): refactor getting latest tag (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl authored Nov 7, 2024
1 parent f25fa79 commit 374463f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ jobs:
fetch-depth: 0
token: ${{ secrets.COATL_BOT_GH_TOKEN }}

- id: tag
run: |
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- run: |
TAG=$(git describe --tags --abbrev=0)
gh release create "$TAG" \
--title "$TAG" \
--generate-notes
env:
TAG: ${{ steps.tag.outputs.tag }}
GITHUB_TOKEN: ${{ secrets.COATL_BOT_GH_TOKEN }}

0 comments on commit 374463f

Please sign in to comment.