move tools out of /opt/hostedtoolcache due it beeing a mounted volume (#121)

We can define ACT_TOOLSDIRECTORY back to /opt/hostedtoolcache to revert this
This commit is contained in:
ChristopherHX
2024-01-30 22:22:39 +01:00
committed by GitHub
parent 1cb15e3411
commit c8a0963004
5 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ DEFVER=$(jq -r '.toolcache[] | select(.name == "go") | .default' "/imagegenerati
for V in $(jq -r '.toolcache[] | select(.name == "go") | .versions[]' "/imagegeneration/toolset.json"); do
printf "\n\t🐋 Installing GO=%s 🐋\t\n" "${V}"
VER=$(jq -r "[.[] | select(.version|test(\"^${V}\"))][0].version" "/tmp/go-toolset.json")
GOPATH="$AGENT_TOOLSDIRECTORY/go/${VER}/$(toolcache_arch)"
GOPATH="${ACT_TOOLSDIRECTORY}/go/${VER}/$(toolcache_arch)"
mkdir -v -m 0777 -p "$GOPATH"
DL_VER="${VER}"