-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.04 KB
/
Copy pathpull-request.yaml
File metadata and controls
34 lines (32 loc) · 1.04 KB
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
name: pull-request
on:
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: read
jobs:
update-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
id: app-token
with:
client-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
token: ${{ steps.app-token.outputs.token }}
- uses: orhun/git-cliff-action@f50e11560dce63f7c33227798f90b924471a88b5 # v4
env:
OUTPUT: CHANGELOG.md
- name: update changelog
run: |
git add CHANGELOG.md
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
if git commit -m 'chore: update changelog'; then
git push origin
fi