diff --git a/.github/workflows/staging-docker.yml b/.github/workflows/staging-docker.yml index c3282145..f4bca8d4 100644 --- a/.github/workflows/staging-docker.yml +++ b/.github/workflows/staging-docker.yml @@ -3,7 +3,7 @@ name: Staging Dex UI Pipeline on: pull_request: branches: [main] - types: [opened, synchronize, closed] + types: [opened, synchronize, reopened, closed] env: PR_NUMBER: ${{ github.event.pull_request.number }} @@ -94,11 +94,13 @@ jobs: persist-credentials: false fetch-depth: 0 - - name: Check 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 + - name: Chekc the initial PR deployment status before make a PR Sync. + continue-on-error: true + if: github.event_name == 'pull_request' || github.event.action != 'synchronize' || github.event.action == 'opened' || github.event.action == 'reopened' + uses: aeternity/ae-github-actions/deploy-status@v7.4.0 with: url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com + timeout: 10 - name: Staging PR Sync if: github.event_name == 'pull_request' && github.event.action == 'synchronize' @@ -110,7 +112,7 @@ jobs: app: ${{ env.APP }} - name: Staging deploy - if: github.event_name == 'pull_request' && github.event.action == 'opened' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'reopened' uses: aeternity/ae-github-actions/argocd-deploy@v5 with: url-prefix: pr-${{ env.PR_NUMBER }} @@ -118,7 +120,7 @@ jobs: app: ${{ env.APP }} - name: Staging undeploy - if: github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true + if: ((github.event_name == 'pull_request' && github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true) || (github.event_name == 'delete' && github.event.ref_type == 'branch')) uses: aeternity/ae-github-actions/argocd-undeploy@v5 with: url-prefix: pr-${{ env.PR_NUMBER }}