New ๐ŸŒŠ wave for @helm

Commit 21c19b63

21c19b633cf4Merged

Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 1 file ยท +1 added

Description

feat: changelog.yml as new workflow

Signed-off-by: Dmitriy Zhilyaev [email protected]

Details

Commit
21c19b633cf4
Parent
b3607ab2e924

.github/workflows/changelog.ymladdedView file

1+name: Changelog
2+
3+on:
4+ release:
5+ types: [ published ]
6+
7+jobs:
8+ changelog:
9+ runs-on: ubuntu-latest
10+ permissions:
11+ contents: write # to commit merged changelog
12+ pull-requests: write # to create PR
13+ steps:
14+ - uses: actions/checkout@v4
15+ with:
16+ fetch-depth: 0
17+ ref: main
18+
19+ - uses: actions/setup-go@v5
20+ with:
21+ go-version-file: go.mod
22+
23+ - name: Download changie
24+ run: go install github.com/miniscruff/changie@v1
25+
26+ - name: Generate release changelog
27+ run: changie batch $TAG --force
28+ env:
29+ TAG: ${{ github.event.release.tag_name }}
30+
31+ - name: Upload changelog artifact
32+ uses: actions/upload-artifact@v4
33+ with:
34+ name: changelog
35+ path: .changes/${{ github.event.release.tag_name }}.md
36+
37+ - name: Merge changelog
38+ run: changie merge
39+
40+ - name: Create Pull Request for changelog
41+ uses: peter-evans/create-pull-request@v6
42+ with:
43+ add-paths: |
44+ CHANGELOG.md
45+ .changes
46+ commit-message: "chore: update changelog ${{ github.event.release.tag_name }}"
47+ committer: GitHub <[email protected]>
48+ author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
49+ branch: "changelog/${{ github.event.release.tag_name }}"
50+ delete-branch: true
51+ title: "Changelog/${{ github.event.release.tag_name }}"