diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 280539eb5f..d059a0605f 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -44,7 +44,7 @@ jobs: env: FF_GPU_BACKEND: ${{ matrix.gpu_backend }} cuda_version: ${{ matrix.cuda_version }} - branch_name: ${GITHUB_REF#refs/heads/} + branch_name: ${{ github.head_ref || github.ref_name }} steps: - name: Checkout Git Repository uses: actions/checkout@v3