Skip to content

Instantly share code, notes, and snippets.

@whonion
Created January 12, 2024 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whonion/cbbbaa38ba4690c5aa450a7556193fa9 to your computer and use it in GitHub Desktop.
Save whonion/cbbbaa38ba4690c5aa450a7556193fa9 to your computer and use it in GitHub Desktop.
github-runner
latest_version=$(curl -s https://api.github.com/repos/actions/runner/releases/latest | grep "tag_name" | cut -d'"' -f4)
REPO_RUNNERS_TOKEN=TOKEN
REPO=whonion
mkdir workflows
cd workflows
curl -o actions-runner-linux-x64-latest.tar.gz -L "https://github.com/actions/runner/releases/download/$latest_version/actions-runner-linux-x64-$latest_version.tar.gz"
mkdir whonion
tar -xzf ./actions-runner-linux-x64-latest.tar.gz --directory $REPO
cd whonion
./config.sh --url https://github.com/whonion/whonion --token $REPO_RUNNERS_TOKEN
./run.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment