1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-30 19:22:09 +00:00

Change -W command to accept a single file

Currently setting workflows with the -W (--workflows) flag only accepts
a folder. It is not possible to run a single workflow.yml file.

This commit allows either a single file or a directory to be passed into
the workflows flag.
This commit is contained in:
Dylan Arbour 2020-05-26 23:29:50 -04:00
parent 2df2727f1a
commit ed64e6193c
3 changed files with 21 additions and 6 deletions

View file

@ -51,7 +51,7 @@ func (i *Input) Workdir() string {
return i.resolve(".")
}
// WorkflowsPath returns path to workflows
// WorkflowsPath returns path to workflow file(s)
func (i *Input) WorkflowsPath() string {
return i.resolve(i.workflowsPath)
}