From bfd6b85429878670aa9b28327ab3eb0952d71d7f Mon Sep 17 00:00:00 2001 From: Mike van Riel Date: Fri, 17 Sep 2021 11:39:52 +0200 Subject: [PATCH] Retry composer install steps 2 times because of random failures In https://github.com/ramsey/composer-install/issues/79 we see the same behaviour as in our own builds; because the package doesn't natively supports a retry feature I have added 2 'backup' tasks doing the same thing. I hope this will make builds more stable --- .github/workflows/push.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 6ae32e6606..081e9aa535 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -377,6 +377,20 @@ jobs: with: composer-options: --optimize-autoloader + # Retry composer step again because of: https://github.com/ramsey/composer-install/issues/79 + - name: Install Composer dependencies & cache dependencies + if: ${{ failure() }} + uses: "ramsey/composer-install@v1" + with: + composer-options: --optimize-autoloader + + # Retry composer step a third time because of: https://github.com/ramsey/composer-install/issues/79 + - name: Install Composer dependencies & cache dependencies + if: ${{ failure() }} + uses: "ramsey/composer-install@v1" + with: + composer-options: --optimize-autoloader + - name: Install PHAR dependencies env: GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}