From 374463fe94184bb77dec8831c2ae728d4df55803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Wed, 6 Nov 2024 23:36:40 -0800 Subject: [PATCH] ci(release): refactor getting latest tag (#31) --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80c9d39..73bcc01 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}