chore: update workflow

release-preview
mob-sakai 2024-09-30 01:44:23 +09:00
parent 5ff6ec815a
commit 1b678c68c6
2 changed files with 10 additions and 11 deletions

View File

@ -1,12 +1,12 @@
name: 🔖 Release name: 🔖 Release
run-name: 🔖 Release (${{ github.ref_name }})
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: branches:
- release - release
- release-preview - release-*
- release-v4
tags-ignore: tags-ignore:
- "**" - "**"
@ -50,14 +50,12 @@ jobs:
if [ '${{ steps.release.outputs.new_release_published }}' = 'false' ]; then if [ '${{ steps.release.outputs.new_release_published }}' = 'false' ]; then
echo "No new release published." | tee -a $GITHUB_STEP_SUMMARY echo "No new release published." | tee -a $GITHUB_STEP_SUMMARY
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 $GITHUB_STEP_SUMMARY
echo "split_to=main" | tee -a $GITHUB_OUTPUT echo "split_to=main" | tee -a $GITHUB_OUTPUT $GITHUB_STEP_SUMMARY
elif [ '${{ github.ref_name }}' = 'release-preview' ]; then else
echo "merge_to=develop-preview" | tee -a $GITHUB_OUTPUT channel=$(echo ${{ github.ref_name }} | sed 's/^release-//')
echo "split_to=preview" | tee -a $GITHUB_OUTPUT echo "merge_to=develop-${channel}" | tee -a $GITHUB_OUTPUT $GITHUB_STEP_SUMMARY
elif [ '${{ github.ref_name }}' = 'release-4.x' ]; then echo "split_to=${channel}" | tee -a $GITHUB_OUTPUT $GITHUB_STEP_SUMMARY
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

@ -3,12 +3,13 @@
# UNITY_EMAIL: Unity user email to login # UNITY_EMAIL: Unity user email to login
# UNITY_PASSWORD: Unity user password to login # UNITY_PASSWORD: Unity user password to login
name: 🧪 Test name: 🧪 Test
run-name: 🧪 Test (${{ github.ref_name }})
env: env:
# MINIMUM_VERSION: The minimum version of Unity. # MINIMUM_VERSION: The minimum version of Unity.
MINIMUM_VERSION: 2019.4 MINIMUM_VERSION: 2019.4
# EXCLUDE_FILTER: The excluded versions of Unity. # EXCLUDE_FILTER: The excluded versions of Unity.
EXCLUDE_FILTER: '(2020.2.0)' EXCLUDE_FILTER: '(2020.2.0|2021.1|2023.3)'
on: on:
workflow_dispatch: workflow_dispatch: