From 3b42e0a1d1b9b37447e14e3af714061e9752b01c Mon Sep 17 00:00:00 2001 From: Liam Cervante Date: Fri, 3 Jan 2025 09:26:32 +0100 Subject: [PATCH] releases: trigger the build action only after the unit tests (#36254) --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f34833589156..6e7c47a35b8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,13 +7,17 @@ name: build on: workflow_dispatch: - push: + workflow_run: + workflows: ["Quick Checks"] + types: + - completed branches: - main - 'v[0-9]+.[0-9]+' - releng/** - tsccr-auto-pinning/** - dependabot/** + push: tags: - 'v[0-9]+.[0-9]+.[0-9]+*' @@ -27,6 +31,7 @@ permissions: jobs: get-product-version: name: "Determine intended Terraform version" + if: ${{ github.event.action != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest outputs: product-version: ${{ steps.get-product-version.outputs.product-version }}