Skip to content

Commit d33f77d

Browse files
committed
feat: add changelog build action
1 parent fad6418 commit d33f77d

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Changelog
2+
run-name: "Changelog for ${{ github.ref }} by @${{ github.ACTOR }}"
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
workflow_dispatch:
8+
# tags:
9+
# - "v*.*.*"
10+
# release:
11+
# types:
12+
# - created
13+
14+
permissions:
15+
contents: write
16+
packages: write
17+
18+
jobs:
19+
release:
20+
runs-on: "ubuntu-latest"
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
26+
fetch-tags: true
27+
28+
- name: "✏️ Generate release changelog"
29+
uses: heinrichreimer/github-changelog-generator-action@v2.3
30+
with:
31+
token: ${{ secrets.FLIPPER_TOKEN }}
32+
user: ${{ github.repository_owner }}
33+
repo: ${{ github.repository }}
34+
output: CHANGELOG.md
35+
unreleased: false
36+
stripGeneratorNotice: true
37+
38+
- name: "Show CHANGELOG.md"
39+
run: cat CHANGELOG.md
40+
41+
- name: "Commit changes"
42+
uses: stefanzweifel/git-auto-commit-action@v4
43+
with:
44+
commit_message: "docs: update `CHANGELOG.md`"
45+
file_pattern: "*.md"
46+
branch: ${{ github.ref_name }}
47+
commit_options: '--no-verify --signoff'
48+
# skip_dirty_check: true
49+
# skip_checkout: true
50+
# skip_fetch: true

0 commit comments

Comments
 (0)