From 448213ddc49734545c6d6b8fb7ab927b7f68596d Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 11 Mar 2025 15:43:47 +0100 Subject: [PATCH] Update move-to-main-repo.yaml --- .github/workflows/move-to-main-repo.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index d424e81..6df551d 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -104,8 +104,13 @@ jobs: git remote add upstream https://github.com/${target_repo}.git git fetch upstream - - name: Push + - name: Ensure branch exists run: | - git push --no-thin https://x-access-token:${{ secrets.GH_MERGE_PAT }}@github.com/community-scripts/ProxmoxVE.git test --force - + git checkout -b test || git checkout test + git add . + git commit -m "Ensure test branch exists" || echo "No changes to commit" + + - name: Push branch + run: | + git push --set-upstream origin test --force