From f859bc74c8f6934a0cc38e9b8711b5b41255dc2a Mon Sep 17 00:00:00 2001 From: petarpeshev Date: Mon, 30 Jan 2023 11:18:10 +0200 Subject: [PATCH] ci: check pr deployment state before sync --- .github/workflows/staging-docker.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/staging-docker.yml b/.github/workflows/staging-docker.yml index d6b6f74..aabd5af 100644 --- a/.github/workflows/staging-docker.yml +++ b/.github/workflows/staging-docker.yml @@ -89,6 +89,12 @@ jobs: persist-credentials: false fetch-depth: 0 + - name: Chekc the initial PR deployment status before make a PR Sync. + if: github.event_name == 'pull_request' && github.event.action == 'synchronize' + uses: aeternity/ae-github-actions/deploy-status@v7 + with: + url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.aepps.com + - name: Staging PR Sync if: github.event_name == 'pull_request' && github.event.action == 'synchronize' uses: aeternity/ae-github-actions/argocd-pr-sync@v4