Zettat123 and Jason Song
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 <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/154
Reviewed-by: Jason Song <[email protected] >
Co-authored-by: Zettat123 <[email protected] >
Co-committed-by: Zettat123 <[email protected] >
2023-04-28 22:03:52 +08:00
Zettat123 and Lunny Xiao
27a1a90d25
Upgrade act ( #135 )
...
Related to:
- https://gitea.com/gitea/act/pulls/45
- https://gitea.com/gitea/act/pulls/47
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/135
Reviewed-by: techknowlogick <[email protected] >
Co-authored-by: Zettat123 <[email protected] >
Co-committed-by: Zettat123 <[email protected] >
2023-04-21 10:48:26 +08:00
Zettat123 and Jason Song
c75b67e892
Upgrade act ( #128 )
...
Follow https://gitea.com/gitea/act/pulls/42
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/128
Reviewed-by: Lunny Xiao <[email protected] >
Co-authored-by: Zettat123 <[email protected] >
Co-committed-by: Zettat123 <[email protected] >
2023-04-19 14:53:23 +08:00
Zettat123 and Jason Song
bc6031eff7
Fix reporting log in Reporter.Close ( #126 )
...
Previously, the `Close` func returns incorrectly so that the logs may not be reported.
This PR fixes the incorrect return and sets the `StoppedAt` to get the correct task duration.
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/126
Reviewed-by: Jason Song <[email protected] >
Co-authored-by: Zettat123 <[email protected] >
Co-committed-by: Zettat123 <[email protected] >
2023-04-19 11:17:49 +08:00
Zettat123 and Jason Song
c69c353d93
Upgrade act ( #124 )
...
Related to https://gitea.com/gitea/act/pulls/40
Co-authored-by: Jason Song <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/124
Reviewed-by: Jason Song <[email protected] >
Co-authored-by: Zettat123 <[email protected] >
Co-committed-by: Zettat123 <[email protected] >
2023-04-14 18:20:04 +08:00
Zettat123 and Jason Song
1596e4b1fd
Fix potential log panic ( #82 )
...
If a job uses a [reusable workflow](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-of-jobsjob_iduses ), the job's steps sequence will be empty.
But in log reporter, we don't check the length of `r.state.Steps`, which may cause panic.
``` go
if v, ok := entry.Data["stepNumber"]; ok {
if v, ok := v.(int); ok {
step = r.state.Steps[v]
}
}
```
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/82
Reviewed-by: Lunny Xiao <[email protected] >
Co-authored-by: Zettat123 <[email protected] >
Co-committed-by: Zettat123 <[email protected] >
2023-03-28 11:49:09 +08:00
Zettat123 and Jason Song
8f81f40d62
Fix failed to create container if the runner works in root dir ( #67 )
...
Fix #56
This PR uses the `preset.Repository` as a part of the workdir and use `filepath.FromSlash` to convert the slash characters.
Co-authored-by: Jason Song <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/67
Reviewed-by: Jason Song <[email protected] >
Co-authored-by: Zettat123 <[email protected] >
Co-committed-by: Zettat123 <[email protected] >
2023-03-23 09:41:22 +08:00