1
0
mirror of https://gitea.com/gitea/act_runner synced 2024-11-09 18:05:52 +01:00
act_runner/internal/pkg
Zettat123 35400f76fa 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: https://gitea.com/gitea/act_runner/pulls/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
..
client Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00
config Add parent directory for working directory (#154) 2023-04-28 22:03:52 +08:00
envcheck Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00
labels Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00
report Workflow commands (#149) 2023-04-27 12:32:48 +08:00
ver Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00