diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13b7fcde..5c763fa4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,7 +54,7 @@ jobs: - name: Get Branch if: startsWith(matrix.platform,'linux') run: | - branch=$(git branch --show-current) + branch=$(git rev-parse --abbrev-ref HEAD) echo "Current branch is $branch" echo "BRANCH=$branch" >> $GITHUB_ENV