-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.2 KB
/
main-tag.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
name: Write changelog
on:
push:
tags:
- "v*"
jobs:
create-changelog:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.DEPLOY_APP_ID }}
private-key: ${{ secrets.DEPLOY_APP_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ steps.app-token.outputs.token }}
tag: ${{ github.ref_name }}
restrictToTypes: ""
reverseOrder: true
excludeTypes: ""
excludeScopes: ""
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: "docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]"
file_pattern: CHANGELOG.md
- name: Update major tag to ${{ github.ref_name }}
uses: actions/[email protected]
with:
source-tag: ${{ github.ref_name }}