Skip to content

Commit 5a66cf5

Browse files
authored
Fix broken previous tag within release statements (#184)
1 parent 2308d28 commit 5a66cf5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
with:
4040
fetch-depth: '0'
4141

42+
- name: Get Previous Tag
43+
uses: WyriHaximus/github-action-get-previous-tag@v1
44+
id: prev_tag
45+
with:
46+
fallback: v0.1.0
47+
4248
- name: Download Artifacts
4349
uses: actions/download-artifact@v4
4450
with:
@@ -56,7 +62,7 @@ jobs:
5662
- name: Release New Version
5763
uses: ncipollo/release-action@v1
5864
with:
59-
body: "https://github.com/transprogrammer/rodhaj/compare/${{ steps.tag_version.outputs.tag }}...${{ steps.tag_version.outputs.new_tag }}"
65+
body: "https://github.com/transprogrammer/rodhaj/compare/${{ steps.prev_tag.outputs.tag }}...${{ steps.tag_version.outputs.new_tag }}"
6066
token: ${{ secrets.PAT_TOKEN }}
6167
tag: ${{ steps.tag_version.outputs.new_tag }}
6268
name: ${{ steps.tag_version.outputs.new_tag }}

0 commit comments

Comments
 (0)