From 23ec5126e5fe8178aab57af35b997adbf80ebd16 Mon Sep 17 00:00:00 2001 From: Jim Park Date: Tue, 28 Apr 2020 17:25:19 -0700 Subject: [PATCH] ci: run release only if terraform job passes --- .github/workflows/validate_and_release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/validate_and_release.yml b/.github/workflows/validate_and_release.yml index ce85edb..b79d8b4 100644 --- a/.github/workflows/validate_and_release.yml +++ b/.github/workflows/validate_and_release.yml @@ -7,6 +7,7 @@ on: jobs: terraform: name: 'Terraform' + id: terraform runs-on: ubuntu-latest steps: - name: 'Checkout' @@ -43,6 +44,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release: if: github.event_name == 'push' + needs: terraform runs-on: ubuntu-latest steps: