Skip to content

Commit 6bf4acb

Browse files
fix: fix path to hostedtoolcache in mac
1 parent ba6342b commit 6bf4acb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/runners/templates/install-runner-osx.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fi
1313
file_name="actions-runner.tar.gz"
1414

1515
echo "Setting up GH Actions runner tool cache"
16-
mkdir -p /opt/hostedtoolcache
16+
mkdir -p /Users/runner/hostedtoolcache
1717

1818
echo "Creating actions-runner directory for the GH Action installation"
1919
sudo mkdir -p /opt/actions-runner
@@ -55,4 +55,5 @@ fi
5555

5656
echo "Set file ownership of action runner"
5757
sudo chown -R "$user_name":staff /opt/actions-runner
58-
sudo chown -R "$user_name":staff /opt/hostedtoolcache
58+
sudo chmod 755 "/Users/runner"
59+
sudo chown -R "$user_name":staff /Users/runner/hostedtoolcache

0 commit comments

Comments
 (0)