Skip to content

Commit 02798e1

Browse files
committed
Update build.yaml
1 parent 145f5b7 commit 02798e1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ jobs:
3232
username: ${{ vars.DOCKERHUB_USERNAME }}
3333
password: ${{ secrets.DOCKERHUB_TOKEN }}
3434

35+
- name: Get last tag
36+
run: echo "TAG_LAST=$(git describe --tags --abbrev=0" >> $GITHUB_ENV
37+
3538
- name: "Build Changelog"
3639
id: build_changelog
3740
uses: mikepenz/release-changelog-builder-action@v5
3841
with:
39-
fromTag: "@~2" # last commit
40-
toTag: "@" # this commit
41-
mode: "PR"
42+
fromTag: "${{ env.TAG_LAST }}"
43+
toTag: "${{ github.ref }}"
44+
mode: "HYBRID"
4245
outputFile: "CHANGELOG.md"
4346

4447
- name: Print CHANGELOG.md

0 commit comments

Comments
 (0)