Skip to content

Commit

Permalink
ci(changelog): pull repo before push (#178)
Browse files Browse the repository at this point in the history
To prevent the force push overwrite the most recent merge
when merging multiple PRs at the same time

Signed-off-by: Bill ZHANG <[email protected]>
  • Loading branch information
Lutra-Fs authored Oct 12, 2023
1 parent 2e41f8e commit 4495c07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ jobs:
run: go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest
- name: Generate changelog
run: git-chglog --next-tag 'Unreleased' --output CHANGELOG.md
- name: Pull changes
run: git pull origin main --rebase
- name: Commit changelog
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(changelog): update CHANGELOG.md"
commit_options: '--no-verify --signoff'
file_pattern: CHANGELOG.md
push_options: --force

0 comments on commit 4495c07

Please sign in to comment.