Skip to content

Commit 41d6c9a

Browse files
authored
Merge pull request #31 from kosli-dev/20260624_fix_tag_ancestry
fix: broken tag ancestry
2 parents e44bea4 + 7c80b12 commit 41d6c9a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,20 @@ jobs:
7575
git tag -f "${TAG}"
7676
git push origin -f "refs/tags/${TAG}"
7777
78+
- name: Find previous release tag
79+
id: prev
80+
run: |
81+
prev=$(git tag --list 'v*.*.*' --sort=-v:refname \
82+
| grep -v -- '-' \
83+
| grep -vx "${{ github.ref_name }}" \
84+
| head -1)
85+
echo "tag=$prev" >> "$GITHUB_OUTPUT"
86+
7887
- name: Create GitHub Release with auto-generated notes
7988
uses: softprops/action-gh-release@v3
8089
with:
8190
generate_release_notes: true
91+
previous_tag: ${{ steps.prev.outputs.tag }} # bypasses broken ancestry
8292
prerelease: ${{ steps.meta.outputs.prerelease }}
8393

8494
notify-finish:

0 commit comments

Comments
 (0)