-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.01 KB
/
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
name: changelog
on:
push:
branches:
- master
release:
types: [published]
jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create Token
id: create_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
- name: "✏️ Generate release changelog"
uses: heinrichreimer/[email protected]
with:
token: ${{ steps.create_token.outputs.token }}
- name: Commit CHANGELOG.md
uses: planetscale/[email protected]
with:
repo: ${{ github.repository }}
branch: master
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}