Skip to content

Commit

Permalink
update generate-changelog to specify a branch to checkout to before c…
Browse files Browse the repository at this point in the history
…ommitting
  • Loading branch information
sirkitree committed Nov 4, 2024
1 parent 2dd2a5b commit de48b55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/generate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ jobs:
-u ${{ github.repository_owner }} \
-p ${{ github.event.repository.name }} \
--token ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v5
- name: Checkout to branch
run: |
git checkout "${GITHUB_REF#refs/heads/}"
- name: Commit Changelog
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update changelog"
branch: ${{ github.head_ref }}
branch: ${{ github.head_ref || github.ref_name }}
file_pattern: "CHANGELOG.md"
commit_author: "GitHub Action <[email protected]>"

0 comments on commit de48b55

Please sign in to comment.