Skip to content

Commit

Permalink
releases: trigger the build action only after the unit tests (#36254)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcervante authored Jan 3, 2025
1 parent 1d2d35b commit 3b42e0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]+*'

Expand All @@ -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 }}
Expand Down

0 comments on commit 3b42e0a

Please sign in to comment.