idFromSource
idFromSource(
path):string
Defined in: ci/dist/index.d.mts:7
The task id a workflow source path stands for: the ci/workflows/ prefix (or ../workflows/, which is how
src/index.ts globs it) and the .yml suffix are dropped, and each folder separator becomes a colon, so
ci/workflows/test/unit.yml is test:unit and ci/workflows/typecheck.yml is typecheck. The folder is the
suite of a leaf; workflowFile gives the generated file name of the id.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string