Skip to content

fix(ci): grant write permission for changelog push #4

fix(ci): grant write permission for changelog push

fix(ci): grant write permission for changelog push #4

Workflow file for this run

name: Version Bump
on:
push:
branches: [main]
permissions:
contents: write
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Git
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
- name: Bump version if needed
run: bash scripts/bump-version.sh
- name: Generate CHANGELOG.md
run: bash scripts/generate-changelog.sh
- name: Commit CHANGELOG.md
run: |
git add CHANGELOG.md
git commit -m "docs: update changelog"
git push origin HEAD