-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Issue: Only first step is able to set output variables #758
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I've debugged it a bit, used workflow from issue content. When you check step value here: you will see that while still being on step |
I tested the fix from @ChristopherHX ChristopherHX@fd9f40c that seems to work perfectly. |
So did I. |
@catthehacker any chance of this being fixed via the changes @ChristopherHX made being implemented into the this branch? |
Pull request. |
All credits go to @ChristopherHX which fixed this issue. I only created a PR for this so it will be fixed in the upstream binary. This fixes nektos#758
@catthehacker ok, PR created. |
* Don't interpolate joboutputs, before job is donei All credits go to @ChristopherHX which fixed this issue. I only created a PR for this so it will be fixed in the upstream binary. This fixes #758 * Added output test * Fix typo
System information
act
version: c865a56 (current commit onmaster
at the time of submission)Expected behaviour
Output variables should be able to be defined in multiple steps under the same job
Actual behaviour
Currently, output variables can only be successfully defined in the first step inside a job (see official documentation for reference).
Workflow and/or repository
workflow
Steps to reproduce
Run:
act workflow_dispatch -W <path to the workflow file with content above>
act
outputLog
Comments
May relate to issue 295 based on the comments at the end, but this one is a different issue as
needs
now work on the master branch, although not released yet.This can affect workflows where the first step pulls in an action, e.g. using the digitalocean/action-doctl@v2 as the first step in order to execute
doctl
commands that gets the IP address of a Droplet and sets it as the output in the second step will not be possible due to this issue.The text was updated successfully, but these errors were encountered: