refactor #12125 [Maintenance] Add retry to github action (lchrusciel)
refactor #12125 [Maintenance] Add retry to github action (lchrusciel)

This PR was merged into the 1.8 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.8
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

As the main solution for randomly failing jobs is to rerun them, my proposal is to rerun them by default 3 times(this number was randomly chosen by me). If the build would fail for a not random reason, it will make our builds slower, but from my observation, it is a much rarer case.

<!--
 - Bug fixes must be submitted against the 1.7 or 1.8 branch (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

679581a671f600dfef83ad6bab1ec6253f17ae88 [Maintenance] Add retry to github action

Sylius/Sylius,Arminek/Sylius,loic425/Sylius,pamil/Sylius,pamil/Sylius,GSadee/Sylius,SyliusBot/Sylius,lchrusciel/Sylius,kayue/Sylius,diimpp/Sylius,Zales0123/Sylius,pamil/Sylius,lchrusciel/Sylius,SyliusBot/Sylius,Zales0123/Sylius,Arminek/Sylius,loic425/Sylius,lchrusciel/Sylius,101medialab/Sylius,Arminek/Sylius,antonioperic/Sylius,antonioperic/Sylius,101medialab/Sylius,loic425/Sylius,kayue/Sylius,Zales0123/Sylius,GSadee/Sylius,SyliusBot/Sylius,diimpp/Sylius,GSadee/Sylius,kayue/Sylius,101medialab/Sylius,diimpp/Sylius,antonioperic/Sylius,Sylius/Sylius,Sylius/Sylius