Skip to content

Commit

Permalink
ci: fix changelog github action (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylesomers authored Sep 11, 2024
1 parent 3a48c5c commit d9146b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ jobs:
concurrency:
group: changelog-build
permissions:
contents: write
pull-requests: write
contents: write # Used to create temporary branch for changelog updates
pull-requests: write # Used to create PRs for changelog updates
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
fetch-depth: 0
- name: Update Changelog
run: docker run --rm -v $(pwd):/workdir quay.io/git-chglog/git-chglog -o CHANGELOG.md
run: make changelog
- name: Create Pull Request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git config pull.rebase true
git checkout -b changelog-update
git add .
git commit -m "Update Changelog"
git push origin changelog-update
echo $GH_TOKEN | gh auth login --with-token
gh pr create --title chore: update changelog" --body "This is an auto-generated PR to update the changelog." --base main --head changelog-update --repo ${{ github.repository }} --confirm

0 comments on commit d9146b0

Please sign in to comment.