act_runner/internal/pkg/config
Zettat123 35400f76fa
All checks were successful
checks / check and test (push) Successful in 1m50s
release-nightly / goreleaser (push) Successful in 16m8s
release-nightly / release-image (push) Successful in 18m22s
Add parent directory for working directory (#154)
Fixes #145

At present, the working directory of a work flow is a path like `/<owner>/<repo>`, so the directory may conflict with system directory like `/usr/bin`. We need to add a parent directory for the working directory.
In this PR, the parent directory is `/workspace` by default and users could configure it by the `workdir_parent` option.

This change doesn't affect the host mode because in host mode the working directory will always be in `$HOME/.cache/act/` directory.

Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: #154
Reviewed-by: Jason Song <i@wolfogre.com>
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
2023-04-28 22:03:52 +08:00
..
config.example.yaml Add parent directory for working directory (#154) 2023-04-28 22:03:52 +08:00
config.go Add parent directory for working directory (#154) 2023-04-28 22:03:52 +08:00
deprecated.go Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00
embed.go Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00
registration.go Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00