-
Notifications
You must be signed in to change notification settings - Fork 877
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
fix: GITHUB_ENV in composite #1794
fix: GITHUB_ENV in composite #1794
Conversation
Howdy! Anyone could take a look and expedite the review for that PR? |
Hi @ChristopherHX, |
@ruvceskistefan How did you test it? I created a public run and it works. Steps I did
Here a public repro, which did work for me
Here another run, one job with ubuntu-latest ( including the bug ) and the other one with the patched runner https://github.com/ChristopherHX/newcomposite-sample/actions/runs/2373814906. |
@ChristopherHX you're definitely right, I accidentally tested using runner without |
@ruvceskistefan what is the current state? |
@ruvceskistefan Is there any chance someone from GH could merge this PR soon? the tech debt is growing by the day and we will need to remove a lot of the workarounds we've created. |
Can this PR be reviewed and merged? |
Please merge this PR soon , |
+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for the contribution!
Thanks for your patience while we evaluated the options to solve this problem. I've gone ahead and merged this PR, it will rollout in the next runner release, which should occur in a few weeks! 🎉 |
@thboop Do you know when the next version will be released? |
@thboop When is this fix going to be released. As of Aug 1, 2022 I am still seeing the issue. |
thanks for release 2.295.0 |
This PR just shows how you could fix issue #789. This doesn't includes any tests and I'm not affiliated with GitHub.
Minimal repro of the bug, which this change aims to solve.
action.yml
.github/workflows/main.yml
You see that myenvvar isn't specified as an env parameter of uses: ./, so the env variable should be updated within composite. Actually the actions/runner runs it like the workflow would be, which is expected to always fail
.github/workflows/main.yml
The problem is that the composite step env context is already merged with the old global variable set by GITHUB_ENV.
CC @nikola-jokic
Resolves #789
Resolves #1899