Browse Source

Merge pull request #930 from Avaiga/fix/extract-branch

fix: branch name step reference
João André 1 năm trước cách đây
mục cha
commit
ca75e12e70
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      .github/workflows/build-and-release.yml

+ 3 - 3
.github/workflows/build-and-release.yml

@@ -28,10 +28,10 @@ jobs:
         NEW_VERSION: ${{ steps.version-setup.outputs.NEW_VERSION }}
     steps:
       - uses: actions/checkout@v4
-      - name: Extract commit hash
+      - name: Extract branch name
         shell: bash
-        run: echo "HASH=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
-        id: extract_hash
+        run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
+        id: extract_branch
 
       - name: Setup Version
         id: version-setup