diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2c63ab..5cc22af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: fetch-depth: 0 - name: Get branch name - run: echo "BranchName=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $env:GITHUB_ENV + run: echo "BranchName=${GITHUB_REF_NAME}" >> $env:GITHUB_ENV - name: Get commit hash run: echo "CommitHash=$(git rev-parse --short=7 HEAD)" >> $env:GITHUB_ENV