diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cff11b63..8b4352f7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,6 +18,7 @@ jobs: docker_image: ${{ steps.final.outputs.docker_image }} docker_devices: ${{ steps.final.outputs.docker_devices }} runs_on: ${{ steps.final.outputs.runs_on }} + label: ${{ steps.final.outputs.label }} concurrency: group: ${{ github.workflow }}-build-and-push-image-${{ inputs.hardware }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true @@ -142,12 +143,13 @@ jobs: echo "docker_image=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:sha-${{ env.GITHUB_SHA_SHORT}}${{ env.LABEL }}" >> "$GITHUB_OUTPUT" echo "docker_devices=${{ env.DOCKER_DEVICES }}" >> "$GITHUB_OUTPUT" echo "runs_on=${{ env.RUNS_ON }}" >> "$GITHUB_OUTPUT" + echo "label=${{ env.LABEL }}" >> "$GITHUB_OUTPUT" integration_tests: concurrency: - group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.job }}-${{ needs.build-and-push.outputs.label}-${{ github.head_ref || github.run_id }} cancel-in-progress: true needs: build-and-push - runs-on: ${{ needs.build-and-push.outputs.runs_on }} + runs-on: ${{ fromJson(needs.build-and-push.outputs.runs_on) }} steps: - name: Checkout repository uses: actions/checkout@v4