From f6a07edb302a0fa6552d53030d50bf1748e9651b Mon Sep 17 00:00:00 2001 From: petarpeshev Date: Fri, 8 Nov 2024 21:13:48 +0200 Subject: [PATCH] ci: change pr closed triggers --- .github/workflows/staging-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/staging-docker.yml b/.github/workflows/staging-docker.yml index afb18bb2..b120585f 100644 --- a/.github/workflows/staging-docker.yml +++ b/.github/workflows/staging-docker.yml @@ -118,7 +118,7 @@ jobs: app: ${{ env.APP }} - name: Staging undeploy - if: github.event_name == 'pull_request' && github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true + if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'release') != true uses: aeternity/ae-github-actions/argocd-undeploy@v4 with: url-prefix: pr-${{ env.PR_NUMBER }}