setup-node/validate/test.sh

23 lines
529 B
Bash
Raw Permalink Normal View History

2020-04-24 20:58:38 +08:00
#/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
2020-05-03 04:26:50 +08:00
export INPUT_VERSION="12" #"0.12.7" #"12" #"11.15.0"
2020-04-24 20:58:38 +08:00
# 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