Skip to content

Commit f6c7bea

Browse files
committed
feat: Automate Triggering of trigger-release.sh After Init Release GitHub Action
Signed-off-by: jaehanbyun <[email protected]>
1 parent 29d5229 commit f6c7bea

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

.github/workflows/init-release.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,4 @@ jobs:
7272
branch: update-version
7373
branch-suffix: random
7474
signoff: true
75-
labels: release
76-
77-
75+
labels: release

.github/workflows/tag-release.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tag Release After PR Merge
2+
3+
on:
4+
push:
5+
branches:
6+
- 'release-*'
7+
paths:
8+
- 'VERSION'
9+
10+
jobs:
11+
trigger-release:
12+
permissions:
13+
contents: write
14+
name: Automatically Tag Release ${{ github.ref_name }} Branch
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
ref: ${{ github.ref }}
23+
24+
- name: Setup Git author information
25+
run: |
26+
git config --global user.email '[email protected]'
27+
git config --global user.name 'CI'
28+
29+
- name: Determine Version
30+
run: |
31+
VERSION=$(cat VERSION)
32+
echo "VERSION=${VERSION}" >> $GITHUB_ENV
33+
34+
- name: Trigger Release Script
35+
run: |
36+
bash hack/trigger-release.sh v${{ env.VERSION }} origin

0 commit comments

Comments
 (0)