Fix Renovate workflow cleanup
Some checks failed
CICD / Build and Publish CICD Base Image (push) Successful in 28s
CICD / Build and Publish CICD Base Image (pull_request) Failing after 14m20s
CICD / Build and Push CICD Image (push) Successful in 27m34s
CICD / Build CICD Image Failure Postmortem (push) Has been skipped
CICD / Backend Tests (push) Successful in 16m32s
CICD / Backend Doctests (push) Successful in 24s
CICD / Frontend Tests (push) Successful in 6m22s
CICD / Pre-commit Checks (push) Successful in 50m18s
CICD / CICD Tests Complete (push) Successful in 4s
CICD / Source Lanes Failure Postmortem (push) Has been skipped
CICD / Build Backend Base Image (push) Successful in 26s
CICD / Build Frontend Base Image (push) Successful in 1m7s
CICD / Build Integration Tester Image (push) Successful in 42s
CICD / Build Backend Main Image (push) Successful in 2m43s
CICD / Build Frontend Main Image (push) Successful in 2m7s
CICD / Build E2E Tester Image (push) Successful in 14m7s
CICD / Production Image Failures Postmortem (push) Has been skipped
CICD / Production Images Complete (push) Successful in 8s
CICD / Runtime Black-Box Integration Tests (push) Successful in 2m27s
CICD / Integration Tests Failure Postmortem (push) Has been skipped
CICD / End-to-End Tests (push) Failing after 1h12m26s
CICD / Build and Push CICD Image (pull_request) Has been cancelled
CICD / Build CICD Image Failure Postmortem (pull_request) Has been cancelled
CICD / Backend Tests (pull_request) Has been cancelled
CICD / Pre-commit Checks (pull_request) Has been cancelled
CICD / Frontend Tests (pull_request) Has been cancelled
CICD / Backend Doctests (pull_request) Has been cancelled
CICD / CICD Tests Complete (pull_request) Has been cancelled
CICD / Build Backend Base Image (pull_request) Has been cancelled
CICD / Build Frontend Base Image (pull_request) Has been cancelled
CICD / Build Integration Tester Image (pull_request) Has been cancelled
CICD / Build E2E Tester Image (pull_request) Has been cancelled
CICD / Build Backend Main Image (pull_request) Has been cancelled
CICD / Build Frontend Main Image (pull_request) Has been cancelled
CICD / Production Images Complete (pull_request) Has been cancelled
CICD / Production Image Failures Postmortem (pull_request) Has been cancelled
CICD / Source Lanes Failure Postmortem (pull_request) Has been cancelled
CICD / Runtime Black-Box Integration Tests (pull_request) Has been cancelled
CICD / Integration Tests Failure Postmortem (pull_request) Has been cancelled
CICD / End-to-End Tests (pull_request) Has been cancelled
CICD / E2E Tests Failure Postmortem (pull_request) Has been cancelled
CICD / E2E Tests Failure Postmortem (push) Has been cancelled

This commit is contained in:
copilotcoder
2026-07-13 10:33:27 -04:00
parent ed6501a450
commit a1e9773799

View File

@@ -105,7 +105,6 @@ jobs:
RENOVATE_TOKEN_SECRET: ${{ secrets.RENOVATE_TOKEN }}
ACTIONS_TRIGGER_TOKEN: ${{ secrets.ACTIONS_TRIGGER_TOKEN }}
PACKAGE_ACCESS_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
RENOVATE_CONFIG_REF: ${{ github.ref_name }}
RENOVATE_DRY_RUN: ${{ inputs.dry_run }}
RENOVATE_PLATFORM: gitea
RENOVATE_ENDPOINT_INTERNAL: http://kankali.darkhelm.lan:3001/api/v1
@@ -128,8 +127,6 @@ jobs:
echo "=== Running Renovate Bot ==="
TARGET_REPO="DarkHelm.org/plex-playlist"
TARGET_ORG="${TARGET_REPO%%/*}"
RENOVATE_CONFIG_PATH="/tmp/renovate-config.json"
RENOVATE_CONFIG_PAYLOAD="/tmp/renovate-config-payload.json"
CURL_INSECURE_FLAG=""
if [ "${RENOVATE_ALLOW_INSECURE_TLS:-false}" = "true" ]; then
@@ -216,25 +213,6 @@ jobs:
echo "Renovate git base URL override: ${RENOVATE_GIT_URL}"
echo "Preflight API endpoint: ${API_ENDPOINT}"
CONFIG_FETCH_TOKEN="${RENOVATE_TOKEN_SECRET:-${ACTIONS_TRIGGER_TOKEN:-${PACKAGE_ACCESS_TOKEN:-}}}"
if [ -z "${CONFIG_FETCH_TOKEN}" ]; then
echo "❌ No token available to fetch renovate.json from the repo contents API"
exit 1
fi
if ! curl -sS ${CURL_INSECURE_FLAG} \
-H "Authorization: token ${CONFIG_FETCH_TOKEN}" \
"${API_ENDPOINT}/repos/${TARGET_REPO}/contents/renovate.json?ref=${RENOVATE_CONFIG_REF}" \
-o "${RENOVATE_CONFIG_PAYLOAD}"; then
echo "❌ Expected Renovate config could not be fetched from the repo contents API at ref ${RENOVATE_CONFIG_REF}"
exit 1
fi
if ! python3 -c 'import base64, json, sys; output_path = sys.argv[1]; payload_path = sys.argv[2]; payload = json.load(open(payload_path, encoding="utf-8")); content = payload.get("content"); sys.exit(1) if not content else None; open(output_path, "wb").write(base64.b64decode(content.replace("\n", "")))' "${RENOVATE_CONFIG_PATH}" "${RENOVATE_CONFIG_PAYLOAD}"; then
echo "❌ Expected Renovate config could not be decoded from the repo contents API response at ref ${RENOVATE_CONFIG_REF}"
exit 1
fi
PLATFORM_VERSION=""
if [ "${VERSION_STATUS}" = "200" ]; then
PLATFORM_VERSION=$(sed -n 's/.*"version":"\([^"]*\)".*/\1/p' /tmp/renovate-version-check.json | head -n 1)
@@ -377,7 +355,6 @@ jobs:
-e RENOVATE_BRANCH_CONCURRENT_LIMIT \
-e RENOVATE_NODE_ARGS \
-e RENOVATE_OSV_VULNERABILITY_ALERTS \
-v "${RENOVATE_CONFIG_PATH}:/tmp/renovate-config.json:ro" \
--entrypoint /bin/sh \
"${RENOVATE_IMAGE}" \
-lc 'set -e
@@ -388,7 +365,7 @@ jobs:
git config --global --add "url.${RENOVATE_GIT_REWRITE_TO}.insteadOf" "https://x-access-token:${RENOVATE_TOKEN}@dogar.darkhelm.org/"
git config --global --add "url.${RENOVATE_GIT_REWRITE_TO}.insteadOf" "${RENOVATE_GIT_REWRITE_FROM}"
echo "Configured git dogar->kankali rewrite rules"
renovate --config-file /tmp/renovate-config.json --platform "${RENOVATE_PLATFORM}" --endpoint "${RENOVATE_ENDPOINT}" --git-url "${RENOVATE_GIT_URL}" --git-author "${RENOVATE_GIT_AUTHOR}" --onboarding="${RENOVATE_ONBOARDING}" --pr-concurrent-limit "${RENOVATE_PR_CONCURRENT_LIMIT}" --branch-concurrent-limit "${RENOVATE_BRANCH_CONCURRENT_LIMIT}" --osv-vulnerability-alerts="${RENOVATE_OSV_VULNERABILITY_ALERTS}" DarkHelm.org/plex-playlist'
renovate --platform "${RENOVATE_PLATFORM}" --endpoint "${RENOVATE_ENDPOINT}" --git-url "${RENOVATE_GIT_URL}" --git-author "${RENOVATE_GIT_AUTHOR}" --onboarding="${RENOVATE_ONBOARDING}" --pr-concurrent-limit "${RENOVATE_PR_CONCURRENT_LIMIT}" --branch-concurrent-limit "${RENOVATE_BRANCH_CONCURRENT_LIMIT}" --osv-vulnerability-alerts="${RENOVATE_OSV_VULNERABILITY_ALERTS}" DarkHelm.org/plex-playlist'
}
if run_renovate_with_endpoint "${BASE_ENDPOINT}" 2>&1 | tee /tmp/renovate.log; then