Refactor merge-to-branch script to handle "zen-stable" branch and merge to "twilight" branch if specified

This commit is contained in:
mr. M
2024-10-11 19:14:34 +02:00
parent 2b68cc481e
commit 6d9e54043c

View File

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