(c *Compiler, workflowData *WorkflowData)
| 226 | } |
| 227 | |
| 228 | func resolveAgenticWorkflowsCLIVersion(c *Compiler, workflowData *WorkflowData) string { |
| 229 | cliVersion := c.actionTag |
| 230 | if cliVersion == "" { |
| 231 | cliVersion = getActionTagFromFeatures(workflowData) |
| 232 | } |
| 233 | if cliVersion == "" { |
| 234 | cliVersion = c.version |
| 235 | } |
| 236 | // "dev" and empty versions are not valid release pins; fall back to the |
| 237 | // current compiler runtime version so setup-cli always receives a concrete |
| 238 | // pinned release tag in non-dev modes. |
| 239 | if cliVersion == "" || cliVersion == "dev" { |
| 240 | cliVersion = getDefaultGhAWRuntimeVersion() |
| 241 | } |
| 242 | return cliVersion |
| 243 | } |
| 244 | |
| 245 | func getActionTagFromFeatures(workflowData *WorkflowData) string { |
| 246 | if workflowData == nil || workflowData.Features == nil { |
no test coverage detected