From cc8d1c904cf9e4a6b3158d36ae1c8ce3e4568e23 Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Tue, 27 Feb 2024 00:37:04 +0000 Subject: [PATCH] Add delay between approving and merging PR in the automated PRs manager --- .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 dcba290d3..32cedfc64 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."