getLockFilePath converts a markdown workflow path to its compiled lock file path Example: "/path/to/workflow.md" -> "/path/to/workflow.lock.yml"
(markdownPath string)
| 25 | // getLockFilePath converts a markdown workflow path to its compiled lock file path |
| 26 | // Example: "/path/to/workflow.md" -> "/path/to/workflow.lock.yml" |
| 27 | func getLockFilePath(markdownPath string) string { |
| 28 | // Handle regular workflow files |
| 29 | return strings.TrimSuffix(markdownPath, ".md") + ".lock.yml" |
| 30 | } |
| 31 | |
| 32 | // IsRunnable checks if a workflow can be run (has schedule or workflow_dispatch trigger) |
| 33 | // This function checks the compiled .lock.yml file because that's what GitHub Actions uses. |
no outgoing calls