Skip to content

Commit

Permalink
Add delay between approving and merging PR in the automated PRs manager
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Feb 27, 2024
1 parent a34e1cb commit 30d076f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/automated-prs-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
echo "All tests and required checks 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/kots/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 "All tests passed, but some required PR checks have not. Skipping."
Expand Down

0 comments on commit 30d076f

Please sign in to comment.