Skip to content

Instantly share code, notes, and snippets.

@nixinator
Created September 27, 2021 16:16
Show Gist options
  • Save nixinator/c52a237b38671b2b8b58414ddd7a649f to your computer and use it in GitHub Desktop.
Save nixinator/c52a237b38671b2b8b58414ddd7a649f to your computer and use it in GitHub Desktop.
runner get it
#!/bin/sh
registration_url="https://api.github.com/repos/ArdanaLabs/DanaSwapStats/actions/runners/registration-token"
echo "Requesting registration URL at '${registration_url}'"
payload=$(curl -sX POST -H "Authorization: token ${GITHUB_PAT}" ${registration_url})
#export RUNNER_TOKEN=$(echo $payload | jq .token --raw-output)
echo RUNNER_TOKEN=$(echo $payload | jq .token --raw-output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment