Update update_json_date.yml

This commit is contained in:
CanbiZ 2025-02-11 10:04:37 +01:00 committed by GitHub
parent 55fa65e168
commit 12ec0b46bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,15 +73,20 @@ jobs:
echo "Processing PR #$PR_NUMBER from $PR_REPO:$PR_BRANCH"
# Richtige Repository-URL setzen
# Fork-Repo klonen (anstatt community-scripts)
REPO_URL="https://x-access-token:${{ env.GH_ACCESS_TOKEN }}@github.com/$PR_REPO/ProxmoxVE.git"
# Fork klonen
# Sicherstellen, dass der Fork existiert
if ! git ls-remote --exit-code "$REPO_URL" &>/dev/null; then
echo "Repository $PR_REPO/ProxmoxVE does not exist or is private. Skipping..."
continue
fi
git clone --depth=1 "$REPO_URL"
cd ProxmoxVE || exit 1
# PR-Branch auschecken
git fetch origin "$PR_BRANCH"
# Alle Branches abrufen & den richtigen Branch auschecken
git fetch origin "$PR_BRANCH" || { echo "Branch $PR_BRANCH does not exist in fork. Skipping..."; cd ..; rm -rf ProxmoxVE; continue; }
git checkout "$PR_BRANCH"
# Get newly added JSON files