-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (37 loc) · 985 Bytes
/
changelog.yml
File metadata and controls
43 lines (37 loc) · 985 Bytes
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
name: Generate CHANGELOG.md
on:
workflow_run: # only runs on default branch
workflows: [CI]
types: [completed]
branches: [main]
workflow_dispatch:
schedule:
- cron: 0 12 * * 5
concurrency:
group: generate-changelog
cancel-in-progress: true
jobs:
changelog:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
permissions:
contents: write
timeout-minutes: 3
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: v1.0.0..HEAD
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- uses: ryancyq/github-signed-commit@v1
env:
GH_TOKEN: ${{ github.token }}
with:
files: |
CHANGELOG.md
commit-message: "ci: update CHANGELOG.md"