Initiales Beispiel-Monorepo (npm + .NET)
This commit is contained in:
commit
e25a66e940
22 files changed
+1222
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
# Vollständiger Renovate-Lauf, komplett lokal:
|
||||
# 1. lokales Forgejo starten + aktuellen Stand pushen (forgejo-up.sh)
|
||||
# 2. Renovate-CLI gegen das lokale Forgejo laufen lassen (Branches + PRs + Dependency Dashboard)
|
||||
# 3. die Renovate-Branches zurück ins lokale Repo holen (forgejo/renovate/*)
|
||||
source "$(dirname "$0")/lib.sh"
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
bash "$ROOT_DIR/scripts/forgejo-up.sh"
|
||||
TOKEN="$(cat "$STATE_DIR/token")"
|
||||
|
||||
log "Starte Renovate ${RENOVATE_VERSION} gegen $FORGEJO_URL ($FORGEJO_USER/$FORGEJO_REPO)"
|
||||
RENOVATE_CONFIG_FILE="$ROOT_DIR/renovate/config.js" \
|
||||
RENOVATE_ENDPOINT="$FORGEJO_URL/api/v1" \
|
||||
RENOVATE_TOKEN="$TOKEN" \
|
||||
RENOVATE_BASE_DIR="$STATE_DIR/renovate-cache" \
|
||||
LOG_LEVEL="${LOG_LEVEL:-info}" \
|
||||
renovate_cli "$FORGEJO_USER/$FORGEJO_REPO" "$@"
|
||||
|
||||
log "Hole Renovate-Branches ins lokale Repo"
|
||||
git fetch -q --prune "$GIT_REMOTE" '+refs/heads/*:refs/remotes/'"$GIT_REMOTE"'/*'
|
||||
git branch -r --list "$GIT_REMOTE/renovate/*" | sed 's/^/ /'
|
||||
|
||||
cat <<INFO
|
||||
|
||||
Fertig. Nächste Schritte:
|
||||
- PRs ansehen: $FORGEJO_URL/$FORGEJO_USER/$FORGEJO_REPO/pulls
|
||||
- Änderungen ansehen: git diff main $GIT_REMOTE/renovate/<branch>
|
||||
- lokal übernehmen: git merge $GIT_REMOTE/renovate/<branch>
|
||||
- oder PR in Forgejo mergen und dann: git pull $GIT_REMOTE main
|
||||
INFO
|
||||
Reference in new issue
Block a user