-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Replace deprecated set-env with $GITHUB_ENV #260
Conversation
….yml which is more up to date. Should be put into its own reusable file probably.
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.
Thanks for taking care of that, it was on my todo
.github/workflows/app_build.yml
Outdated
@@ -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") |
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.
That works probably. I've used it differently in python
OpenStudioApplication/.github/workflows/export_standards_data.yml
Lines 50 to 51 in e95d68c
with open(os.environ['GITHUB_ENV'], 'a') as f: | |
f.write(f"\nOS_SDK_VERSION_MAJOR={OS_SDK_VERSION_MAJOR}") |
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.
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.
|
No description provided.