Skip to content

Commit

Permalink
Add delay between approving and merging PR in the automated PRs manag…
Browse files Browse the repository at this point in the history
…er (#1493)
  • Loading branch information
sgalsaleh committed Feb 27, 2024
1 parent ffd357c commit 2eb3aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/automated-prs-manager.yaml
Expand Up @@ -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."
Expand Down

0 comments on commit 2eb3aa9

Please sign in to comment.