-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (39 loc) · 1.06 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
42
43
44
45
46
name: Changelog
on:
push:
branches:
- main
workflow_dispatch:
inputs:
commit-ref:
description: Revision number of commit
jobs:
changelog:
runs-on: ubuntu-latest
permissions:
contents: write
packages: read
pull-requests: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Git configuration
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "GitHub Actions"
- name: Create Changelog Entry
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
COMMIT_REF: ${{github.event.inputs.commit-ref}}
run: |
npm run changelog
- name: Auto commit
if: success()
uses: stefanzweifel/[email protected]
with:
commit_message: "chore(changelog): update changelog"
file_pattern: "changes/changelog.md"