generateHumanReadableName converts action name to human-readable format
(actionName string)
| 202 | |
| 203 | // generateHumanReadableName converts action name to human-readable format |
| 204 | func generateHumanReadableName(actionName string) string { |
| 205 | // Replace underscores with spaces and capitalize words |
| 206 | words := strings.Split(actionName, "_") |
| 207 | for i, word := range words { |
| 208 | if len(word) > 0 { |
| 209 | words[i] = strings.ToUpper(word[:1]) + word[1:] |
| 210 | } |
| 211 | } |
| 212 | return strings.Join(words, " ") |
| 213 | } |
| 214 | |
| 215 | // extractInputs extracts input parameters from core.getInput() calls |
| 216 | func extractInputs(content string) []ActionInput { |
no outgoing calls