From e943a80858bf04d934a887f74fe8ded2f285ef20 Mon Sep 17 00:00:00 2001 From: splincode Date: Thu, 5 Oct 2023 14:54:26 +0300 Subject: [PATCH] fix: add sleep before merge --- actions/run/merge/action.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/actions/run/merge/action.yml b/actions/run/merge/action.yml index 0520780..48aa6f4 100644 --- a/actions/run/merge/action.yml +++ b/actions/run/merge/action.yml @@ -13,10 +13,27 @@ inputs: runs: using: composite steps: + - run: sleep 30s + shell: bash + - uses: ridedott/merge-me-action@v2.8.35 + continue-on-error: true with: GITHUB_TOKEN: ${{ inputs.token }} MERGE_METHOD: ${{ inputs.type }} ENABLE_GITHUB_API_PREVIEW: true ENABLED_FOR_MANUAL_CHANGES: true MAXIMUM_RETRIES: 2 + + - uses: actions/github-script@v6 + if: steps.waiter.outputs.conclusion == 'failure' + continue-on-error: true + with: + github-token: ${{ github.token }} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '⚡️ Run auto merge for current branch!' + })