-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: ensure proper changelog generation
Signed-off-by: Mateusz Urbanek <[email protected]>
- Loading branch information
1 parent
781f123
commit fe15e46
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,18 @@ jobs: | |
if: startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Capture latest tag if exists | ||
uses: actions-ecosystem/action-get-latest-tag@v1 | ||
id: get-latest-tag | ||
with: | ||
semver_only: true | ||
with_initial_version: true | ||
initial_version: v0.0.0 | ||
- id: previous | ||
run: | | ||
echo tag="$(git tag -l 'v*' | grep -v '${{ steps.get-latest-tag.outputs.tag }}' | tail -n 1)" >> "$GITHUB_OUTPUT" | ||
- id: semver_parser | ||
uses: release-kit/semver@v2 | ||
with: | ||
|
@@ -30,7 +42,8 @@ jobs: | |
uses: requarks/changelog-action@v1 | ||
with: | ||
token: ${{ github.token }} | ||
tag: ${{ github.ref_name }} | ||
toTag: ${{ steps.previous.outputs.tag }} | ||
fromTag: ${{ github.ref_name }} | ||
excludeTypes: "" | ||
excludeScopes: "" | ||
- uses: ncipollo/[email protected] | ||
|