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

Replace deprecated set-env with $GITHUB_ENV #260

Merged
merged 5 commits into from Oct 24, 2020
Merged

Replace deprecated set-env with $GITHUB_ENV #260

merged 5 commits into from Oct 24, 2020

Conversation

macumber
Copy link
Collaborator

No description provided.

@macumber macumber requested a review from jmarrec October 24, 2020 02:50
@macumber
Copy link
Collaborator Author

….yml which is more up to date. Should be put into its own reusable file probably.
Copy link
Collaborator

@jmarrec jmarrec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of that, it was on my todo

@@ -138,23 +139,23 @@ jobs:
sdk_version = ''
if m_major:
sdk_version += m_major.groups()[0]
print("::set-env name=OS_SDK_VERSION_MAJOR::{}".format(m_major.groups()[0]))
os.system(f"echo OS_SDK_VERSION_MAJOR={m_major.groups()[0]} >> $GITHUB_ENV")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works probably. I've used it differently in python

with open(os.environ['GITHUB_ENV'], 'a') as f:
f.write(f"\nOS_SDK_VERSION_MAJOR={OS_SDK_VERSION_MAJOR}")

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll bring that over from export_standards_data.yml which is more up to date on that front. We should put that code into its own reusable library file or something at one point, but no rush.

@jmarrec
Copy link
Collaborator

jmarrec commented Oct 24, 2020

Warning: The `add-path` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

@jmarrec jmarrec merged commit 15d3eb1 into develop Oct 24, 2020
@jmarrec jmarrec deleted the env_file branch October 24, 2020 19:08
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.

None yet

2 participants