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

Artifact Stub #3151

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Artifact Stub #3151

wants to merge 2 commits into from

Conversation

thboop
Copy link
Collaborator

@thboop thboop commented Feb 12, 2024

This is an example of what it would look like to deprecate an action using the runner. We would want to

  • Add a feature flag
  • Consolidate this into a single function to clean up the code
  • determine what ref's should make it into an allowlist, and setup the code to handle those refs

@ChristopherHX
Copy link
Contributor

Detecting by ref sounds to be a fragile detection method for me, however you can go with any approuch

I would check (actionDefinitionData.Execution as NodeJSActionExecutionData).NodeVersion == "node12" to detect v2 (v3 uses node16, v4 uses node20) together with the repository name

I would check for (actionDefinitionData.Execution as PluginActionExecutionData).Plugin == "publish" || (actionDefinitionData.Execution as PluginActionExecutionData).Plugin == "download" to detect v1 (uses an ancient runner plugin)

Inside

else if (actionDefinitionData.Execution.ExecutionType == ActionExecutionType.NodeJS)
{
Trace.Info($"Action node.js file: {(actionDefinitionData.Execution as NodeJSActionExecutionData).Script}, no more preparation.");
return null;
}
else if (actionDefinitionData.Execution.ExecutionType == ActionExecutionType.Plugin)
{
Trace.Info($"Action plugin: {(actionDefinitionData.Execution as PluginActionExecutionData).Plugin}, no more preparation.");
return null;
}
else if (actionDefinitionData.Execution.ExecutionType == ActionExecutionType.Composite)

If I understood correctly v3 remains to be ok to use for an extended time, e.g. until GHES instances have v4 support

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