Provision Forgejo act cache on macOS
This commit is contained in:
parent
15e897d262
commit
7039bf5aad
1 changed files with 3 additions and 2 deletions
|
|
@ -597,8 +597,9 @@ func macosBootstrapScript() string {
|
|||
workdir="${FORGEJO_RUNNER_WORKDIR:-/tmp/forgejo-runner}"
|
||||
mkdir -p "${workdir}"
|
||||
cd "${workdir}"
|
||||
export HOME="${workdir}/home"
|
||||
mkdir -p "${HOME}/.cache/act"
|
||||
if ! mkdir -p "/Users/runner/.cache/act" 2>/dev/null; then
|
||||
sudo install -d -m 0775 -o "$(id -un)" -g "$(id -gn)" /Users/runner/.cache /Users/runner/.cache/act
|
||||
fi
|
||||
|
||||
export PATH="/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin:${PATH}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue