From e01b270b828f2a31d3d758c45bcde38268fa8dc5 Mon Sep 17 00:00:00 2001 From: Tay Yi Hsuen Date: Tue, 31 Oct 2023 23:24:27 +0800 Subject: [PATCH] Add success condition to production workflow run (#209) --- .github/workflows/production.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 88c7ffe7..b16d2016 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -30,6 +30,7 @@ jobs: name: Setup, Build, Publish, and Deploy runs-on: ubuntu-latest environment: production + if: ${{ github.event.workflow_run.conclusion == 'success' }} permissions: contents: 'read' id-token: 'write'