From 0f58c07a553136b4f54c5de720ab11bec93c97f7 Mon Sep 17 00:00:00 2001 From: Anthony Lukach Date: Tue, 5 Nov 2024 15:08:17 -0800 Subject: [PATCH] Prevent unnecessary deployments --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7fdddf1..9999ede 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,7 @@ jobs: S3_BUCKET_NAME: test-bucket deploy-to-dev: - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' }} uses: "./.github/workflows/deploy.yml" needs: test with: