Skip to content

Additional configuration for create-pull-request #13

Additional configuration for create-pull-request

Additional configuration for create-pull-request #13

name: Generate Changelog
on:
workflow_dispatch: ~
schedule:
- cron: "0 0 * * 0"
push: ~
permissions:
contents: write
pull-requests: write
jobs:
build-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
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@v5
with:
title: Automated Changelog update
body: |
This is an scheduled pull request to update the changelog.
labels: skip-changelog
branch: automated-changelog-update
token: ${{ secrets.PAT }}
author: kong-docs[bot] <kong-docs[bot]@users.noreply.github.com>
delete-branch: true
commit-message: "Automated changelog update"