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

workflows: replace depracted set-env with github envs #2261

Closed
wants to merge 8 commits into from
Closed

workflows: replace depracted set-env with github envs #2261

wants to merge 8 commits into from

Conversation

MadMango
Copy link

Fixes #2231

Checklist
  • npm install && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

set-env is deprecated and builds will fail, this should fix it

@MadMango
Copy link
Author

Just realised this is for powersheel or cmd and my unix fix won't do here, I'll try come up with something else but can someone confirm if this will run in CMD or powershell?

@richardlau
Copy link
Member

Just realised this is for powersheel or cmd and my unix fix won't do here, I'll try come up with something else but can someone confirm if this will run in CMD or powershell?

Since we don't override the default I believe actions on Windows run in powershell by default: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell

@MadMango
Copy link
Author

Tried to help but I'm out of ideas I'm afraid, setting these variables through powershell or python doesn't seem to make a difference:

image
image

In both cases when trying to print these variables they are not defined:

image

Any other ideas?

Co-authored-by: Christian Clauss <cclauss@me.com>
@gengjiawen
Copy link
Member

I think I find the right way in #2285, can you cherrypick it here ?

@MadMango
Copy link
Author

I think I find the right way in #2285, can you cherrypick it here ?

Well you got it working in that one, let's just close this one and go with yours :)
I would've never quessed the $Env:GITHUB_ENV syntax though 🤯

@MadMango MadMango closed this Dec 18, 2020
@MadMango MadMango deleted the issue-2231-deprecated-set-env branch December 18, 2020 09:03
@gengjiawen
Copy link
Member

Ok, I find the other part is still useful, I will try to import to my patch.

Thanks for taking time on this :)

I would've never quessed the $Env:GITHUB_ENV syntax though 🤯

Yeap, github documentation is useless in this case. I searched lots of code find this out.

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

Successfully merging this pull request may close these issues.

GitHub Actions: The set-env command is deprecated and will be disabled soon.
4 participants