Skip to content

Created env var for forcing node12 actions to run on node16#1913

Merged
thboop merged 11 commits intoactions:mainfrom
ruvceskistefan:stefan-ruvceski/feature/1911
Jun 22, 2022
Merged

Created env var for forcing node12 actions to run on node16#1913
thboop merged 11 commits intoactions:mainfrom
ruvceskistefan:stefan-ruvceski/feature/1911

Conversation

@ruvceskistefan
Copy link
Contributor

Closes #1911

{
var forcedNodeVersion = Environment.GetEnvironmentVariable(Constants.Variables.Agent.ForcedInternalNodeVersion);
return !string.IsNullOrEmpty(forcedNodeVersion) && BuiltInNodeVersions.Contains(forcedNodeVersion) ? forcedNodeVersion : _defaultNodeVersion;
var forcedInternalNodeVersion = Environment.GetEnvironmentVariable(Constants.Variables.Agent.ForcedInternalNodeVersion);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this just a refactor? It doesn't appear to do anything if i'm reading it correctly. Should we just revert these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fhammerl asked to refactor this one with meaningful var names in this comment

@ruvceskistefan ruvceskistefan marked this pull request as ready for review June 20, 2022 15:01
@ruvceskistefan ruvceskistefan requested a review from a team as a code owner June 20, 2022 15:01
thboop
thboop previously approved these changes Jun 20, 2022
Copy link
Collaborator

@thboop thboop left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@thboop thboop left a comment

Choose a reason for hiding this comment

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

LGTM

@thboop thboop merged commit d11bd3d into actions:main Jun 22, 2022
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.

Create an env variable to force node12 actions to run on node16

4 participants