Skip to content

Commit

Permalink
Fix branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Aug 25, 2024
1 parent 144b826 commit 04fa2d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 04fa2d2

Please sign in to comment.