Skip to content

Commit

Permalink
fixing the auto-merge issue (#10457)
Browse files Browse the repository at this point in the history
fixing the automerge issue
  • Loading branch information
omkarkhatavkar committed Dec 22, 2022
1 parent da089ee commit 45ec303
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
- ready_for_review
branches-ignore:
- master
issue_comment:
types:
- created
- deleted
pull_request_review:
types:
- submitted
Expand All @@ -34,15 +30,13 @@ jobs:
direction: last

- name: Fail automerge if PRT was not initiated
if: steps.find-prt-comment.outputs.comment-body == ""
if: steps.find-prt-comment.outputs.comment-body == ''
run: |
echo "::error PRT comment not added the PR"
- name: Wait for PRT checks to get initiated
run: |
if [ "${{ github.event_name }}" == "issue_comment" ]; then
echo "Waiting for 5 min, PRT to be initiated." && sleep 300
fi
echo "Waiting for 5 min, PRT to be initiated." && sleep 320
- id: automerge
name: Auto merge of cherry-picked PRs.
Expand Down

0 comments on commit 45ec303

Please sign in to comment.