MCPcopy Create free account
hub / github.com/github/gh-aw / getLockFilePath

Function getLockFilePath

pkg/cli/run_workflow_validation.go:27–30  ·  view source on GitHub ↗

getLockFilePath converts a markdown workflow path to its compiled lock file path Example: "/path/to/workflow.md" -> "/path/to/workflow.lock.yml"

(markdownPath string)

Source from the content-addressed store, hash-verified

25// getLockFilePath converts a markdown workflow path to its compiled lock file path
26// Example: "/path/to/workflow.md" -> "/path/to/workflow.lock.yml"
27func 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.

Callers 7

TestGetLockFilePathFunction · 0.85
IsRunnableFunction · 0.85
getWorkflowInputsFunction · 0.85

Calls

no outgoing calls