From 9432138a7a0ee62ec9498dcb1773dde2f4594376 Mon Sep 17 00:00:00 2001 From: Marcin Kuthan Date: Sat, 21 Oct 2023 14:06:09 +0200 Subject: [PATCH] Fix build --- .github/workflows/ci.yml | 4 ++-- .github/workflows/deploy.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fc8b15b..2bf962eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: tf-validate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dflook/terraform-validate@v1 with: path: toll-infrastructure @@ -43,7 +43,7 @@ jobs: tf-fmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dflook/terraform-fmt-check@v1 with: path: toll-infrastructure diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dcb516ca..40fb6c72 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,6 +11,7 @@ on: jobs: deploy: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup