Compare commits

..

1 commit

Author SHA1 Message Date
Agent
786c818509 fix: refactor: extract install_cron() and Woodpecker OAuth/token setup from bin/disinto into lib/ci-setup.sh (#303)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 19:59:36 +00:00

View file

@ -12,7 +12,6 @@
# FORGE_URL - Forge instance URL (e.g. http://localhost:3000) # FORGE_URL - Forge instance URL (e.g. http://localhost:3000)
# FORGE_TOKEN - Forge API token # FORGE_TOKEN - Forge API token
# FACTORY_ROOT - Root of the disinto factory # FACTORY_ROOT - Root of the disinto factory
# PROJECT_NAME - Name of the project
# #
# Usage: # Usage:
# source "${FACTORY_ROOT}/lib/ci-setup.sh" # source "${FACTORY_ROOT}/lib/ci-setup.sh"
@ -25,7 +24,6 @@ _load_ci_context() {
[ -z "${FORGE_URL:-}" ] && missing+=("FORGE_URL") [ -z "${FORGE_URL:-}" ] && missing+=("FORGE_URL")
[ -z "${FORGE_TOKEN:-}" ] && missing+=("FORGE_TOKEN") [ -z "${FORGE_TOKEN:-}" ] && missing+=("FORGE_TOKEN")
[ -z "${FACTORY_ROOT:-}" ] && missing+=("FACTORY_ROOT") [ -z "${FACTORY_ROOT:-}" ] && missing+=("FACTORY_ROOT")
[ -z "${PROJECT_NAME:-}" ] && missing+=("PROJECT_NAME")
if [ "${#missing[@]}" -gt 0 ]; then if [ "${#missing[@]}" -gt 0 ]; then
echo "Error: ci-setup.sh requires these globals to be set: ${missing[*]}" >&2 echo "Error: ci-setup.sh requires these globals to be set: ${missing[*]}" >&2
exit 1 exit 1