소스 검색

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

fix: branch name step reference
João André 1 년 전
부모
커밋
ca75e12e70
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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