Commit 2e6e9c5
Fix use of safe.directory inside containers (#1768)
* Fix use of safe.directory inside containers
Inside a container the actual workspace path is a mount point and not the same as outside the container.
E.g.:
- `${{github.workspace}} == /home/runner/work/locale/locale`
- `$GITHUB_WORKSPACE == /__w/locale/locale`
So it seems `/home/runner/work` is mounted at `/__w` and this is reflected by the environment variable but not the context.
So use that variable instead.
* Update action.yml
* Update action.yml
* Update action.yml
---------
Co-authored-by: Tom Hu <[email protected]>1 parent a5dc5a5 commit 2e6e9c5
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
0 commit comments