Update release to use tags for hotfix
This commit is contained in:
parent
4a4baddb34
commit
f61a8f3045
15
.github/workflows/update-release.yml
vendored
15
.github/workflows/update-release.yml
vendored
@ -1,8 +1,10 @@
|
||||
name: Workflow for Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
push:
|
||||
tags:
|
||||
- 'release/v*'
|
||||
- 'hotfix/v*'
|
||||
|
||||
jobs:
|
||||
sync-release-branch:
|
||||
@ -19,6 +21,15 @@ jobs:
|
||||
- name: Fetch all history
|
||||
run: git fetch --unshallow || git fetch --all
|
||||
|
||||
- name: Determine Tag Type
|
||||
id: tagtype
|
||||
run: |
|
||||
if [[ ${{ github.ref }} == refs/tags/release/v* ]]; then
|
||||
echo "::set-output name=type::release"
|
||||
elif [[ ${{ github.ref }} == refs/tags/hotfix/v* ]]; then
|
||||
echo "::set-output name=type::hotfix"
|
||||
fi
|
||||
|
||||
- name: Check out the release branch
|
||||
run: |
|
||||
git checkout release || git checkout -b release
|
||||
|
||||
Loading…
Reference in New Issue
Block a user