3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-29 05:29:32 +01:00
setup-node/validate/test.sh
Bryan MacFarlane ecf0ce62f9 wip
2020-04-24 08:58:38 -04:00

22 lines
501 B
Bash
Executable file

#/bin/bash
set -e
rm -rf ./temp
rm -rf ./node
# uncomment to use charles proxy or other debugging proxy
# export NODE_TLS_REJECT_UNAUTHORIZED=0
# export https_proxy=http://127.0.0.1:8888
export RUNNER_TOOL_CACHE=$(pwd)
export RUNNER_TEMP="${RUNNER_TOOL_CACHE}/temp"
export INPUT_STABLE=true
export INPUT_VERSION="12.x"
# export your PAT with repo scope before running
export INPUT_TOKEN=$GITHUB_TOKEN
echo "Getting ${INPUT_VERSION} ($INPUT_STABLE) with ${INPUT_TOKEN}..."
node ../dist/index.js