Skip to content

Commit

Permalink
Merge pull request #284 from oldgiova/git-cliff-prepend-workaround-2
Browse files Browse the repository at this point in the history
ci: start changelog from fresh
  • Loading branch information
alfrunes authored Dec 24, 2024
2 parents b1fbc1b + b2aaa51 commit b9b2fee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ changelog:
- git config --global user.name "${GITHUB_USER_NAME}"
# GITHUB_TOKEN for Github cli authentication
- export GITHUB_TOKEN=${GITHUB_CLI_TOKEN}
- cp CHANGELOG.md CHANGELOG.md.${CI_COMMIT_REF_NAME} # Saving the changelog for later
script:
- release-please release-pr
--token=${GITHUB_BOT_TOKEN_REPO_FULL}
Expand All @@ -586,7 +587,7 @@ changelog:
- test -z "$RELEASE_PLEASE_PR" && echo "No release-please PR found" && exit 0
- gh pr checkout --force $RELEASE_PLEASE_PR
- wget --output-document cliff.toml https://raw.githubusercontent.com/mendersoftware/mendertesting/master/utils/cliff.toml
- git checkout ${CI_COMMIT_REF_NAME} -- CHANGELOG.md
- mv CHANGELOG.md.${CI_COMMIT_REF_NAME} CHANGELOG.md
- git cliff
--unreleased
--prepend CHANGELOG.md
Expand Down

0 comments on commit b9b2fee

Please sign in to comment.