Skip to content

Firefly III: a personal finances manager

Fix branch checkout logic in release workflow

James Cole91ab6ec55ba0
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6efe631633..7de58da408 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -46,10 +46,11 @@ jobs:
#
BRANCH_TO_PULL=origin/develop
if [[ "$version" == branch* ]]; then
- BRANCH_TO_PULL=origin/${version:7}
+ SHORT=${version:7}
+ BRANCH_TO_PULL="origin/$SHORT"
fi
- echo "Version is '$version', check out '$BRANCH_TO_PULL'-branch"
+ echo "Version is '$version', check out '$BRANCH_TO_PULL' branch"
git checkout --track $BRANCH_TO_PULL
git pull