Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/init-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,4 @@ jobs:
branch: update-version
branch-suffix: random
signoff: true
labels: release


labels: release
36 changes: 36 additions & 0 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tag Release After PR Merge

on:
push:
branches:
- 'release-*'
paths:
- 'VERSION'

jobs:
trigger-release:
permissions:
contents: write
name: Automatically Tag Release ${{ github.ref_name }} Branch
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.ref }}

- name: Setup Git author information
run: |
git config --global user.email '[email protected]'
git config --global user.name 'CI'

- name: Determine Version
run: |
VERSION=$(cat VERSION)
echo "VERSION=${VERSION}" >> $GITHUB_ENV

- name: Trigger Release Script
run: |
bash hack/trigger-release.sh v${{ env.VERSION }} origin