mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-07 07:40:29 +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:
1 parent
a3a85938ad
commit
69b8802ab3
3 files changed
+21
-6
No files matched your search
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user