Generate Changelog #64
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: Generate Changelog | |
on: | |
workflow_dispatch: ~ | |
schedule: | |
- cron: "0 0 * * 0" | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }} | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build-changelog: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Run changelog script | |
working-directory: tools/changelog-generator | |
run: | | |
npm ci | |
node changelog.js | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: Automated Changelog update [skip-ci] | |
body: | | |
This is a scheduled pull request to update the changelog. | |
labels: skip-changelog,review:copyedit | |
base: main | |
branch: automated-changelog-update | |
token: ${{ secrets.PAT }} | |
committer: kong-docs[bot] <team-docs@konghq.com> | |
author: kong-docs[bot] <team-docs@konghq.com> | |
delete-branch: true | |
commit-message: "Automated changelog update" |