From 52db7083a2a746d18a693fb22ef362f786d0ad61 Mon Sep 17 00:00:00 2001 From: petarpeshev Date: Mon, 29 Sep 2025 20:14:41 +0300 Subject: [PATCH 1/3] chore: update gh actions events --- .github/workflows/staging-docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/staging-docker.yml b/.github/workflows/staging-docker.yml index c3282145..eeb53366 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 }} @@ -110,7 +110,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 +118,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 }} From cac39cae396b061ff86a58a1173fdea2f690f132 Mon Sep 17 00:00:00 2001 From: petarpeshev Date: Mon, 29 Sep 2025 20:16:07 +0300 Subject: [PATCH 2/3] chore: update gh actions events --- .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 eeb53366..4e9fef79 100644 --- a/.github/workflows/staging-docker.yml +++ b/.github/workflows/staging-docker.yml @@ -95,7 +95,7 @@ jobs: 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' + 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 with: url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com From 59b7d54558a3daed18f71d4b47f39f15cccb252a Mon Sep 17 00:00:00 2001 From: petarpeshev Date: Mon, 29 Sep 2025 21:20:40 +0300 Subject: [PATCH 3/3] chore: update initial deploy check step --- .github/workflows/staging-docker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/staging-docker.yml b/.github/workflows/staging-docker.yml index 4e9fef79..f4bca8d4 100644 --- a/.github/workflows/staging-docker.yml +++ b/.github/workflows/staging-docker.yml @@ -94,11 +94,13 @@ jobs: persist-credentials: false fetch-depth: 0 - - name: Check the initial PR deployment status before make a PR Sync. + - 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 + 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'