From 5a66cf53048c13871bcea7320d5f7c331bbf59c2 Mon Sep 17 00:00:00 2001 From: Noelle Wang <73260931+No767@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:29:06 -0700 Subject: [PATCH] Fix broken previous tag within release statements (#184) --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 221e966..a700fc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,12 @@ jobs: with: fetch-depth: '0' + - name: Get Previous Tag + uses: WyriHaximus/github-action-get-previous-tag@v1 + id: prev_tag + with: + fallback: v0.1.0 + - name: Download Artifacts uses: actions/download-artifact@v4 with: @@ -56,7 +62,7 @@ jobs: - name: Release New Version uses: ncipollo/release-action@v1 with: - body: "https://github.com/transprogrammer/rodhaj/compare/${{ steps.tag_version.outputs.tag }}...${{ steps.tag_version.outputs.new_tag }}" + body: "https://github.com/transprogrammer/rodhaj/compare/${{ steps.prev_tag.outputs.tag }}...${{ steps.tag_version.outputs.new_tag }}" token: ${{ secrets.PAT_TOKEN }} tag: ${{ steps.tag_version.outputs.new_tag }} name: ${{ steps.tag_version.outputs.new_tag }}