From 4501ee0d440618d152b95dc024f52e11bdcc26a2 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 29 Jun 2020 10:59:23 +0200 Subject: [PATCH] workflows: use git-try-push action Closes #57067. Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- .github/workflows/publish-commit-bottles.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/publish-commit-bottles.yml b/.github/workflows/publish-commit-bottles.yml index e75a20ed6d0..f554cb840f9 100644 --- a/.github/workflows/publish-commit-bottles.yml +++ b/.github/workflows/publish-commit-bottles.yml @@ -76,18 +76,7 @@ jobs: run: | brew pr-pull --verbose ${{github.event.client_payload.pull_request}} - name: Push commits - run: | - for try in $(seq 20); do - git fetch - git rebase origin/master - if git push; then - exit 0 - else - max=$(( $try + 10 )) - sleep $(shuf -i 3-$max -n 1) - fi - done - exit 1 + uses: Homebrew/actions/git-try-push@master - name: Post comment on failure if: ${{!success()}} uses: actions/github-script@0.9.0