fix: fix release workflow

pull/318/head
mob-sakai 2024-05-23 19:08:50 +09:00
parent 154a04c022
commit 30b00762f6
3 changed files with 11 additions and 8 deletions

View File

@ -5,8 +5,8 @@ on:
push: push:
branches: branches:
- release - release
- release_preview - release-preview
- release_v4 - release-v4
tags-ignore: tags-ignore:
- "**" - "**"
@ -52,10 +52,12 @@ jobs:
elif [ '${{ github.ref_name }}' = 'release' ]; then elif [ '${{ github.ref_name }}' = 'release' ]; then
echo "merge_to=develop" | tee -a $GITHUB_OUTPUT echo "merge_to=develop" | tee -a $GITHUB_OUTPUT
echo "split_to=main" | tee -a $GITHUB_OUTPUT echo "split_to=main" | tee -a $GITHUB_OUTPUT
elif [ '${{ github.ref_name }}' = 'release_preview' ]; then elif [ '${{ github.ref_name }}' = 'release-preview' ]; then
echo "merge_to=develop-preview" | tee -a $GITHUB_OUTPUT
echo "split_to=preview" | tee -a $GITHUB_OUTPUT echo "split_to=preview" | tee -a $GITHUB_OUTPUT
elif [ '${{ github.ref_name }}' = 'release_v4' ]; then elif [ '${{ github.ref_name }}' = 'release-4.x' ]; then
echo "split_to=v4" | tee -a $GITHUB_OUTPUT echo "merge_to=develop-4.x" | tee -a $GITHUB_OUTPUT
echo "split_to=4.x" | tee -a $GITHUB_OUTPUT
fi fi
merge-to: merge-to:

View File

@ -15,7 +15,8 @@ on:
push: push:
branches: branches:
- develop - develop
- develop_v5 - develop-preview
- develop-4.x
tags: tags:
- "!*" - "!*"
paths-ignore: paths-ignore:

View File

@ -1,9 +1,9 @@
{ {
"branches": [ "branches": [
"release", "release",
"release_v4", "release-4.x",
{ {
"name": "release_preview", "name": "release-preview",
"prerelease": true "prerelease": true
} }
], ],