Skip to content

Commit 1adba97

Browse files
committed
The branch variable needs to be something that can be checked out in git
1 parent 1b608e3 commit 1adba97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
fi
5757
echo "Base branch is $branchname"
5858
BASE_BRANCH="$branchname"
59-
echo "branch=$branchname" >> $GITHUB_OUTPUT
59+
echo "branch=$BASE_BRANCH" >> $GITHUB_OUTPUT
6060
break
6161
done <<< `gh api \
6262
-H "Accept: application/vnd.github+json" \
@@ -65,12 +65,12 @@ jobs:
6565
jq -r '. | map(select(.name | match("r/[0-9]*.x"))) | .[].name'`
6666
#Figure out what develop branch's version should be
6767
# Bash is, without a doubt, the worst possible way to do this, but here we are...
68-
export DEVELOP_BRANCH=$(($(echo $LAST_BRANCH | cut -f 2 -d '/' | cut -f 1 -d '.') + 1)).x
68+
export DEVELOP_VERSION=$(($(echo $LAST_BRANCH | cut -f 2 -d '/' | cut -f 1 -d '.') + 1)).x
6969
#If we didn't find a match above, *and* the develop branch matches the tag
70-
if [ -z "${BASE_BRANCH}" -a "$DEVELOP_BRANCH" == "`git describe --tags | cut -f 1 -d -`" ]; then
71-
echo "Base branch is develop, version $DEVELOP_BRANCH"
70+
if [ -z "${BASE_BRANCH}" -a "$DEVELOP_VERSION" == "`git describe --tags | cut -f 1 -d -`" ]; then
71+
echo "Base branch is develop, version $DEVELOP_VERSION"
7272
# Develop is by definition (LAST_BRANCH + 1).x
73-
echo "branch=$DEVELOP_BRANCH" >> $GITHUB_OUTPUT
73+
echo "branch=develop" >> $GITHUB_OUTPUT
7474
fi
7575
7676
- name: Create new release in github

0 commit comments

Comments
 (0)