Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry with value replacement #118

Open
mgaitan opened this issue Oct 23, 2023 · 1 comment
Open

Retry with value replacement #118

mgaitan opened this issue Oct 23, 2023 · 1 comment

Comments

@mgaitan
Copy link

mgaitan commented Oct 23, 2023

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
Copy link
Collaborator

dmvict commented Oct 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants