From 1b0236cb3c0a1211127a87087a47977727dfa837 Mon Sep 17 00:00:00 2001 From: Felix Marty Date: Mon, 20 Nov 2023 10:38:41 +0000 Subject: [PATCH] github.job is null only available within steps --- .github/workflows/build.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 78d1c4f9d96..9621675635a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -59,7 +59,7 @@ jobs: build-and-push-image: concurrency: - group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-build-and-push-image-${{ github.head_ref || github.run_id }} cancel-in-progress: true needs: start-runner # required to start the main job when the runner is ready runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner @@ -147,9 +147,9 @@ jobs: cache-to: type=registry,ref=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:cache,mode=min build-and-push-image-rocm: - #concurrency: - # group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }} - # cancel-in-progress: true + concurrency: + group: ${{ github.workflow }}-build-and-push-image-rocm-${{ github.head_ref || github.run_id }} + cancel-in-progress: true needs: start-runner # required to start the main job when the runner is ready runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner permissions: