Wandalen / wretry.action

Retry action for Github CI
MIT License
93 stars 20 forks source link

Retry with value replacement #118

Open mgaitan opened 10 months ago

mgaitan commented 10 months ago

suppose I want to try an action, and if it fails retry changing its inputs.

- uses: Wandalen/wretry.action@master
  with:
    action: owner/action-repo@version
    with: |
      option1: <value>

Let's say is "A" in the first attempt, and "B" in the second.

Is it possible somehow?

dmvict commented 10 months ago

Hello @mgaitan

The action provides no changing inputs on retry.

It is possible if a retried action changes its input for the process. The test action (it is used for for tests) reads input value here and update in this line.