Skip to content

Commit f1c6bf4

Browse files
Added post-release workflow
1 parent f8591f3 commit f1c6bf4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/post-release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Post Release
2+
on:
3+
release:
4+
types: [ published ]
5+
6+
jobs:
7+
update_default_branch:
8+
name: Update default branch after published release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
ref: "main"
15+
16+
- name: create changelog
17+
uses: charmixer/auto-changelog-action@v1
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
exclude_labels: "duplicate,question,invalid,wontfix,skip-changelog"
21+
22+
- name: commit updated changelog
23+
uses: EndBug/[email protected]
24+
with:
25+
message: "[CHANGELOG] Updated changelog"
26+
add: "CHANGELOG.md"
27+
signoff: true
28+
branch: main
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Create pull request
32+
uses: repo-sync/pull-request@v2
33+
with:
34+
source_branch: "release"
35+
destination_branch: "main"
36+
pr_title: "[Deployment] Update default branch"
37+
pr_label: "skip-changelog"
38+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)