ResolveSetupActionReference resolves the actions/setup action reference based on action mode and version. This is a standalone helper function that can be used by both Compiler methods and standalone workflow generators (like maintenance workflow) that don't have access to WorkflowData. Parameters:
(ctx context.Context, actionMode ActionMode, version string, actionTag string, resolver SHAResolver)
| 36 | // - For action mode without resolver: "github/gh-aw-actions/setup@<version>" (tag-based, SHA resolved later) |
| 37 | // - Falls back to local path if version is invalid in release/action mode |
| 38 | func ResolveSetupActionReference(ctx context.Context, actionMode ActionMode, version string, actionTag string, resolver SHAResolver) string { |
| 39 | return resolveSetupActionRef(ctx, actionMode, version, actionTag, resolver, "") |
| 40 | } |
| 41 | |
| 42 | // resolveSetupActionRef is the internal implementation of ResolveSetupActionReference |
| 43 | // that accepts an optional actionsOrgRepo override. When actionsOrgRepo is empty, |