Refactor branch names in build and release workflows

This commit is contained in:
mr. M
2024-10-12 18:32:20 +02:00
parent 7a04307c32
commit 0d2ae948e8
3 changed files with 8 additions and 6 deletions

View File

@@ -74,9 +74,11 @@ jobs:
git branch
git status
git branch --show-current
branch="zen-${{ inputs.update_branch }}"
if [[ $branch == "zen-alpha" ]]; then
branch="zen-stable"
branch="${{ inputs.update_branch }}"
if [[ $branch == "alpha" ]]; then
branch="stable"
elif [[ $branch == "twilight" ]]; then
branch="dev"
fi
if [[ $(git branch --show-current) != $branch ]]; then
echo ">>> Branch mismatch"

View File

@@ -2,7 +2,7 @@ name: Zen Twilight Scheduled Releases
on:
push:
branches:
- twilight
- dev
workflow_dispatch:
jobs:

View File

@@ -4,10 +4,10 @@ name: Update Components Submodules
on:
push:
branches:
- central
- dev
pull_request:
branches:
- central
- dev
workflow_dispatch:
workflow_call: # This is a custom event that we will trigger manually