From f4beabb98a111545099a5b02c3c0a62a75f0b7b9 Mon Sep 17 00:00:00 2001 From: Anna Balaeva Date: Thu, 9 Mar 2023 11:26:13 +0300 Subject: [PATCH 1/2] ci: use bobheadxi/deployments@v1.3.0 Since bobheadxi/deployments@v1.4.0 we had a CI failure with the following error in `destroy-deployments` and `destroy-deployments-manually`, step `remove-github-deployment`: ``` unexpected error encountered: HttpError: Resource not accessible by integration Error: unexpected error encountered: HttpError: Resource not accessible by integration - see logs for more information ``` This patch returns version 1.3.0 that worked OK. Part of #3390 --- .github/workflows/destroy-deployment-manually.yml | 2 +- .github/workflows/destroy-deployment.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/destroy-deployment-manually.yml b/.github/workflows/destroy-deployment-manually.yml index 6f50c333bf..ef21084026 100644 --- a/.github/workflows/destroy-deployment-manually.yml +++ b/.github/workflows/destroy-deployment-manually.yml @@ -36,7 +36,7 @@ jobs: max_attempts: 3 - name: Remove GitHub deployment at ${{env.DEPLOYMENT_NAME}} - uses: bobheadxi/deployments@v1 + uses: bobheadxi/deployments@v1.3.0 # remove GH deployment even if webhook failed if: always() id: remove-github-deployment diff --git a/.github/workflows/destroy-deployment.yml b/.github/workflows/destroy-deployment.yml index 72e663d128..c1f1076aa2 100644 --- a/.github/workflows/destroy-deployment.yml +++ b/.github/workflows/destroy-deployment.yml @@ -35,7 +35,7 @@ jobs: max_attempts: 3 - name: Remove GitHub deployment at branch-${{env.DEPLOYMENT_NAME}} - uses: bobheadxi/deployments@v1 + uses: bobheadxi/deployments@v1.3.0 # remove GH deployment even if webhook failed if: always() id: remove-github-deployment From 4ae63512e40f514b91b47efa22264abf536bb1f3 Mon Sep 17 00:00:00 2001 From: Anna Balaeva Date: Tue, 7 Mar 2023 17:38:44 +0300 Subject: [PATCH 2/2] ci: fix `delete-deployment` workflow This patch fixes retry_wait_seconds for nick-field/retry action so the command has enough time for correct executing. Before this patch, we had this step always failing with the real webhook task finished successfully. Part of #3390 --- .github/workflows/destroy-deployment-manually.yml | 4 ++-- .github/workflows/destroy-deployment.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/destroy-deployment-manually.yml b/.github/workflows/destroy-deployment-manually.yml index ef21084026..24ba34c6b8 100644 --- a/.github/workflows/destroy-deployment-manually.yml +++ b/.github/workflows/destroy-deployment-manually.yml @@ -31,8 +31,8 @@ jobs: id: delete-deployment-webhook with: command: bash webhooks/delete_deployment.sh - timeout_seconds: 15 - retry_wait_seconds: 15 + timeout_seconds: 30 + retry_wait_seconds: 30 max_attempts: 3 - name: Remove GitHub deployment at ${{env.DEPLOYMENT_NAME}} diff --git a/.github/workflows/destroy-deployment.yml b/.github/workflows/destroy-deployment.yml index c1f1076aa2..fe08dd2a84 100644 --- a/.github/workflows/destroy-deployment.yml +++ b/.github/workflows/destroy-deployment.yml @@ -30,8 +30,8 @@ jobs: id: delete-deployment-webhook with: command: bash webhooks/delete_deployment.sh - timeout_seconds: 15 - retry_wait_seconds: 15 + timeout_seconds: 30 + retry_wait_seconds: 30 max_attempts: 3 - name: Remove GitHub deployment at branch-${{env.DEPLOYMENT_NAME}}