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 }}