mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
* Add env variable to configure `disablupdate` flag * Write test for entrypoint disable update * Rename flag, update docs for DISABLE_RUNNER_UPDATE * chore: bump runner version in makefile Co-authored-by: Callum Tait <15716903+toast-gear@users.noreply.github.com>
32 lines
524 B
Bash
Executable File
32 lines
524 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
export LIGHTGREEN='\e[0;32m'
|
|
export LIGHTRED='\e[0;31m'
|
|
export WHITE='\e[0;97m'
|
|
export RESET='\e[0m'
|
|
|
|
log(){
|
|
printf "\t${WHITE}$@${RESET}\n" 2>&1
|
|
}
|
|
|
|
success(){
|
|
printf "\t${LIGHTGREEN}$@${RESET}\n" 2>&1
|
|
}
|
|
|
|
error(){
|
|
printf "\t${LIGHTRED}$@${RESET}\n" 2>&1
|
|
exit 1
|
|
}
|
|
|
|
success ""
|
|
success "Running the service..."
|
|
# test if --once is present as a parameter
|
|
echo "$*" | grep -q 'once' || error "Should include --once in the parameters"j
|
|
success "...successful"
|
|
touch runsvc_ran
|
|
success ""
|
|
|
|
|