Skip to content

Commit

Permalink
Fix broken previous tag within release statements (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 authored Aug 14, 2024
1 parent 2308d28 commit 5a66cf5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit 5a66cf5

Please sign in to comment.