Revert "ci: use auth token for changelog workflow" #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Changelog Update | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
permissions: | |
actions: read | |
checks: read | |
contents: write | |
deployments: read | |
issues: read | |
discussions: read | |
packages: read | |
pages: read | |
pull-requests: read | |
security-events: read | |
statuses: read | |
jobs: | |
changelog: | |
name: Vonage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: main | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update changelog | |
uses: orhun/git-cliff-action@v2 | |
id: git-cliff | |
with: | |
config: cliff.toml | |
env: | |
OUTPUT: CHANGELOG.md | |
- name: Commit changelog | |
run: | | |
git config --local user.name NexmoDev | |
git config --local user.email [email protected] | |
git add CHANGELOG.md | |
git commit -m "docs: update changelog" | |
git push |