Files
github-runner/entrypoint.sh
2025-10-14 11:09:08 +02:00

14 lines
321 B
Bash

#!/bin/bash
# Check required env variables
if [ -z "$OWNER" ] || [ -z "$REPO" ] || [ -z "$RUNNER_TOKEN" ]; then
echo "Missing OWNER, REPO, or RUNNER_TOKEN environment variables."
exit 1
fi
# Configure the runner
./config.sh --url https://github.com/${OWNER}/${REPO} --token $RUNNER_TOKEN
# Run the runner
./run.sh