From 2eb3aa988316a3a62ed952ee2aa41f5846db3aa3 Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Tue, 27 Feb 2024 06:06:31 -0800 Subject: [PATCH] Add delay between approving and merging PR in the automated PRs manager (#1493) --- .github/workflows/automated-prs-manager.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automated-prs-manager.yaml b/.github/workflows/automated-prs-manager.yaml index dcba290d..32cedfc6 100644 --- a/.github/workflows/automated-prs-manager.yaml +++ b/.github/workflows/automated-prs-manager.yaml @@ -74,8 +74,8 @@ jobs: echo "All tests passed. Approving and merging." echo -e "LGTM :thumbsup: \n\nThis PR was automatically approved and merged by the [automated-prs-manager](https://github.com/replicatedhq/troubleshoot/blob/main/.github/workflows/automated-prs-manager.yaml) GitHub action" > body.txt gh pr review --approve "${{ matrix.pr.url }}" --body-file body.txt - gh pr merge --auto --squash "${{ matrix.pr.url }}" sleep 10 + gh pr merge --auto --squash "${{ matrix.pr.url }}" exit 0 else echo "Some checks did not pass. Skipping."