Skip to content

Commit ae0c528

Browse files
authored
Update start.sh
1 parent 12fe003 commit ae0c528

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

start.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
ORGANIZATION=$ORGANIZATION
44
ACCESS_TOKEN=$ACCESS_TOKEN
55

6+
[[ -z "${ACCESS_TOKEN:-}" ]] && { echo "ACCESS_TOKEN is required"; exit 1; }
7+
[[ -z "${ORGANIZATION:-}" ]] && { echo "ORGANIZATION is required"; exit 1; }
8+
69
REG_TOKEN=$(curl -sX POST -H "Authorization: token ${ACCESS_TOKEN}" https://api.github.com/orgs/${ORGANIZATION}/actions/runners/registration-token | jq .token --raw-output)
710

811
cd /home/docker/actions-runner

0 commit comments

Comments
 (0)