Skip to content

Use process.env instead of core.exportvariable to set env#138

Merged
MoChilia merged 1 commit intoAzure:masterfrom
MoChilia:agentenv0222
Feb 22, 2024
Merged

Use process.env instead of core.exportvariable to set env#138
MoChilia merged 1 commit intoAzure:masterfrom
MoChilia:agentenv0222

Conversation

@MoChilia
Copy link
Member

Since setting environment variable for agent is required in current process, there is no need to use core.exportVariable. See https://github.com/actions/toolkit/blob/main/packages/core/README.md#exporting-variables, core.exportVariable is used to add environment variable to this step and future steps environment blocks.

The same implementation as Azure/login#384.

@MoChilia MoChilia self-assigned this Feb 22, 2024
@MoChilia MoChilia requested a review from YanaXu February 22, 2024 07:51
@MoChilia MoChilia merged commit 4b557fa into Azure:master Feb 22, 2024
@MoChilia MoChilia deleted the agentenv0222 branch February 22, 2024 08:24
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.

2 participants