We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12fe003 commit ae0c528Copy full SHA for ae0c528
1 file changed
start.sh
@@ -3,6 +3,9 @@
3
ORGANIZATION=$ORGANIZATION
4
ACCESS_TOKEN=$ACCESS_TOKEN
5
6
+[[ -z "${ACCESS_TOKEN:-}" ]] && { echo "ACCESS_TOKEN is required"; exit 1; }
7
+[[ -z "${ORGANIZATION:-}" ]] && { echo "ORGANIZATION is required"; exit 1; }
8
+
9
REG_TOKEN=$(curl -sX POST -H "Authorization: token ${ACCESS_TOKEN}" https://api.github.com/orgs/${ORGANIZATION}/actions/runners/registration-token | jq .token --raw-output)
10
11
cd /home/docker/actions-runner
0 commit comments