Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/release-entry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
- uses: actions/checkout@v6
with:
persist-credentials: false
clean: true
#
# Fetch full history, including tags, or otherwise the changelog generation will silently fail:
fetch-depth: 0
fetch-tags: true

- uses: cachix/install-nix-action@v31

Expand Down
19 changes: 18 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,25 @@ tasks:

release:changelog:
desc: Creates list of changes since the last release tag
vars:
FLAG_UNRELEASED:
# If we included the --unreleased flag while on a commit that belongs to any tag, we would get an empty list. If this
# task was only used to generate release notes in the GH-A workflow, right on a release tag, not including the flag
# would've been just fine.
# On the other hand, being able to easily create a one-off preview of what would be generated without having to
# create a local tag is pretty useful too.
# Regular `git log --oneline` should still be the daily driver, though.
sh: |
TAGS_CURRENT_COMMIT_BELONGS_TO=$(git tag --contains)
if [ -z "${TAGS_CURRENT_COMMIT_BELONGS_TO}" ]; then
# Current commit does not belong to any tags - include commits since last release/tag
echo "--unreleased"
else
# Current commit is pointed to by at least one tag - do not include the flag
echo ""
fi
cmds:
- cmd: git-cliff --current --unreleased --output {{ .FILE | default "-" | shellQuote }}
- cmd: git-cliff --latest {{ .FLAG_UNRELEASED }} --output {{ .FILE | default "-" | shellQuote }}

release:check-reproducibility:
# See https://maven.apache.org/guides/mini/guide-reproducible-builds.html
Expand Down
Loading