From 2b8105bdae4b746666ee225970c4a281bbd9d51f Mon Sep 17 00:00:00 2001 From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com> Date: Fri, 3 Feb 2023 14:32:26 +0530 Subject: [PATCH] Fixing paths for OSes (#1101) --- caching-strategies.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/caching-strategies.md b/caching-strategies.md index be2dd34..47946c3 100644 --- a/caching-strategies.md +++ b/caching-strategies.md @@ -107,22 +107,31 @@ Below are GiHub hosted runner specific paths one should take care of when writin #### Ubuntu Paths Home directory (`~/`) = `/home/runner` + `${{ github.workspace }}` = `/home/runner/work/repo/repo` + `process.env['RUNNER_TEMP']`=`/home/runner/work/_temp` + `process.cwd()` = `/home/runner/work/repo/repo` #### Windows Paths Home directory (`~/`) = `C:\Users\runneradmin` + `${{ github.workspace }}` = `D:\a\repo\repo` + `process.env['RUNNER_TEMP']` = `D:\a\_temp` + `process.cwd()` = `D:\a\repo\repo` #### macOS Paths Home directory (`~/`) = `/Users/runner` + `${{ github.workspace }}` = `/Users/runner/work/repo/repo` + `process.env['RUNNER_TEMP']` = `/Users/runner/work/_temp` + `process.cwd()` = `/Users/runner/work/repo/repo` Where: