From 91c61b257f624ee8a2e1e388a8d53d361920883e Mon Sep 17 00:00:00 2001 From: No767 <73260931+No767@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:10:08 -0700 Subject: [PATCH] add fix --- .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 0c99bcb..6405962 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,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: @@ -59,7 +65,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 }}