update
This commit is contained in:
		@@ -40,7 +40,15 @@ GITEA_TOKEN=$(bashio::config 'gitea_token')
 | 
			
		||||
RUNNER_NAME=$(bashio::config 'runner_name')
 | 
			
		||||
RUNNER_LABEL=$(bashio::config 'runner_label')
 | 
			
		||||
 | 
			
		||||
exec /usr/local/bin/act_runner register --no-interactive --instance ${GITEA_URL} --token ${GITEA_TOKEN} --name ${RUNNER_NAME} --labels ${RUNNER_LABEL}
 | 
			
		||||
# Register the runner
 | 
			
		||||
/usr/local/bin/act_runner register --no-interactive --instance "${GITEA_URL}" --token "${GITEA_TOKEN}" --name "${RUNNER_NAME}" --labels "${RUNNER_LABEL}"
 | 
			
		||||
 | 
			
		||||
# Check if registration was successful
 | 
			
		||||
if [ $? -ne 0 ]; then
 | 
			
		||||
    bashio::log.error "Failed to register act_runner."
 | 
			
		||||
    exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
bashio::log.info "Registration complete. Starting act_runner in daemon mode..."
 | 
			
		||||
 | 
			
		||||
bashio::log.info "Handing over control to actrunner..."
 | 
			
		||||
exec exec /usr/local/bin/act_runner daemon
 | 
			
		||||
		Reference in New Issue
	
	Block a user