mirror of
https://github.com/actions/cache.git
synced 2024-12-27 01:40:36 +01:00
Fixing paths for OSes (#1101)
This commit is contained in:
parent
e08330827d
commit
2b8105bdae
1 changed files with 9 additions and 0 deletions
|
@ -107,22 +107,31 @@ Below are GiHub hosted runner specific paths one should take care of when writin
|
||||||
#### Ubuntu Paths
|
#### Ubuntu Paths
|
||||||
|
|
||||||
Home directory (`~/`) = `/home/runner`
|
Home directory (`~/`) = `/home/runner`
|
||||||
|
|
||||||
`${{ github.workspace }}` = `/home/runner/work/repo/repo`
|
`${{ github.workspace }}` = `/home/runner/work/repo/repo`
|
||||||
|
|
||||||
`process.env['RUNNER_TEMP']`=`/home/runner/work/_temp`
|
`process.env['RUNNER_TEMP']`=`/home/runner/work/_temp`
|
||||||
|
|
||||||
`process.cwd()` = `/home/runner/work/repo/repo`
|
`process.cwd()` = `/home/runner/work/repo/repo`
|
||||||
|
|
||||||
#### Windows Paths
|
#### Windows Paths
|
||||||
|
|
||||||
Home directory (`~/`) = `C:\Users\runneradmin`
|
Home directory (`~/`) = `C:\Users\runneradmin`
|
||||||
|
|
||||||
`${{ github.workspace }}` = `D:\a\repo\repo`
|
`${{ github.workspace }}` = `D:\a\repo\repo`
|
||||||
|
|
||||||
`process.env['RUNNER_TEMP']` = `D:\a\_temp`
|
`process.env['RUNNER_TEMP']` = `D:\a\_temp`
|
||||||
|
|
||||||
`process.cwd()` = `D:\a\repo\repo`
|
`process.cwd()` = `D:\a\repo\repo`
|
||||||
|
|
||||||
#### macOS Paths
|
#### macOS Paths
|
||||||
|
|
||||||
Home directory (`~/`) = `/Users/runner`
|
Home directory (`~/`) = `/Users/runner`
|
||||||
|
|
||||||
`${{ github.workspace }}` = `/Users/runner/work/repo/repo`
|
`${{ github.workspace }}` = `/Users/runner/work/repo/repo`
|
||||||
|
|
||||||
`process.env['RUNNER_TEMP']` = `/Users/runner/work/_temp`
|
`process.env['RUNNER_TEMP']` = `/Users/runner/work/_temp`
|
||||||
|
|
||||||
`process.cwd()` = `/Users/runner/work/repo/repo`
|
`process.cwd()` = `/Users/runner/work/repo/repo`
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
Loading…
Reference in a new issue