Skip to content

Commit b30678b

Browse files
authored
Merge pull request #237 from hjgraca/changelog-update-pipeline
2 parents 82480de + 8873568 commit b30678b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/reusable_publish_changelog.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ jobs:
3030
git pull origin "${BRANCH}"
3131
- name: "Generate latest changelog"
3232
run: make changelog
33-
- name: Update Changelog in trunk
33+
- name: Update Changelog with PR
3434
run: |
3535
HAS_CHANGE=$(git status --porcelain)
3636
test -z "${HAS_CHANGE}" && echo "Nothing to update" && exit 0
37+
git checkout -b update-changelog-${{github.run_id}}
3738
git add CHANGELOG.md
3839
git commit -m "update changelog with latest changes"
3940
git pull origin "${BRANCH}" # prevents concurrent branch update failing push
40-
git push origin HEAD:refs/heads/"${BRANCH}"
41+
git push origin update-changelog-${{github.run_id}}

0 commit comments

Comments
 (0)