-
Notifications
You must be signed in to change notification settings - Fork 596
44 lines (39 loc) · 1.14 KB
/
generate-changelog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
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@v5
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] <[email protected]>
author: kong-docs[bot] <[email protected]>
delete-branch: true
commit-message: "Automated changelog update"