How to write a retry logic script?? #5848
-
I want to write a retry logic script as mentioned here: Unfortunately, nothing we can do from our side, add retry logic to a script. Originally posted by @al-cheb in #5824 (comment) How to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@RudraSen2 you can take a look at this example. We implement retry logic in download function. I believe you can wrap up your code into something similar https://github.com/actions/virtual-[environments/blob/054266a4b32735a980117226ec5357419366e777/images/macos/provision/utils/utils.sh#L3 |
Beta Was this translation helpful? Give feedback.
@RudraSen2 you can take a look at this example. We implement retry logic in download function. I believe you can wrap up your code into something similar https://github.com/actions/virtual-[environments/blob/054266a4b32735a980117226ec5357419366e777/images/macos/provision/utils/utils.sh#L3
](https://github.com/actions/virtual-environments/blob/054266a4b32735a980117226ec5357419366e777/images/macos/provision/utils/utils.sh#L19-L36)