mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-23 15:25:03 +01:00
This commit is contained in:
@@ -17,6 +17,7 @@ type Input struct {
|
||||
dryrun bool
|
||||
forcePull bool
|
||||
noOutput bool
|
||||
envfile string
|
||||
}
|
||||
|
||||
func (i *Input) resolve(path string) string {
|
||||
@@ -33,6 +34,11 @@ func (i *Input) resolve(path string) string {
|
||||
return path
|
||||
}
|
||||
|
||||
// Envfile returns path to .env
|
||||
func (i *Input) Envfile() string {
|
||||
return i.resolve(i.envfile)
|
||||
}
|
||||
|
||||
// Workdir returns path to workdir
|
||||
func (i *Input) Workdir() string {
|
||||
return i.resolve(".")
|
||||
|
||||
Reference in New Issue
Block a user