Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
Joren-vanGoethem committed Oct 24, 2024
1 parent 603f54b commit 9c774ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github-actions-runner/start.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/bash

REPO=$REPO
ACCESS_TOKEN=$ACCESS_TOKEN
TOKEN=$TOKEN

# REG_TOKEN=$(curl -X POST -H "Authorization: token ${ACCESS_TOKEN}" -H "Accept: application/vnd.github+json" https://api.github.com/repos/${REPO}/actions/runners/registration-token | jq .token --raw-output)

cd /home/docker/actions-runner

./config.sh --url https://github.com/${REPO} --token ${ACCESS_TOKEN}
./config.sh --url https://github.com/${REPO} --token ${TOKEN}

cleanup() {
echo "Removing runner..."
./config.sh remove --unattended --token ${REG_TOKEN}
./config.sh remove --unattended --token ${TOKEN}
}

trap 'cleanup; exit 130' INT
Expand Down

0 comments on commit 9c774ba

Please sign in to comment.