From 04fa2d2b556510e15698c386e7c82e2b47654ac8 Mon Sep 17 00:00:00 2001 From: "Eric J. Smith" Date: Sun, 25 Aug 2024 18:02:57 -0500 Subject: [PATCH] Fix branch name --- .github/workflows/build-workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml index c20fd76f..d2c6c348 100644 --- a/.github/workflows/build-workflow.yml +++ b/.github/workflows/build-workflow.yml @@ -41,10 +41,10 @@ jobs: - name: Build Reason run: | branch=${GITHUB_REF##*/}. - if [ "$branch" = "main" ]; then + if [ "$branch" = "main." ]; then branch="" fi - if [ "$branch" = "master" ]; then + if [ "$branch" = "master." ]; then branch="" fi if [ "${GITHUB_REF%%/*}" = "refs/tags" ]; then @@ -54,7 +54,7 @@ jobs: branch="" fi echo "GIT_BRANCH_SUFFIX=$branch" >> $GITHUB_ENV - echo branch: $GIT_BRANCH_SUFFIX ref: $GITHUB_REF event: $GITHUB_EVENT_NAME + echo branch: $branch ref: $GITHUB_REF event: $GITHUB_EVENT_NAME - name: Build Version run: | dotnet tool install --global minver-cli --version 5.0.0