From e0bae28053cc47e96c25918d4e8c7e1bcd48041b Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 10 Mar 2025 16:34:28 +0100 Subject: [PATCH] WF --- .github/workflows/move-to-main-repo.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index fcd7b2b..a3c90d5 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -75,7 +75,12 @@ jobs: commit_message="Add script files for $script_name" - git checkout -b "$branch_name" + git remote add upstream https://github.com/$target-repo.git + + git fetch upstream + + + git checkout -b "$branch_name" upstream/main cp "ct/$script_name.sh" . cp "install/$script_name-install.sh" . @@ -85,4 +90,4 @@ jobs: git commit -m "$commit_message" git push origin "$branch_name" - gh pr create --title "Add script files for $script_name" --body "This PR adds the $script_name script files." --base main --head "$branch_name" --repo "$target_repo" + gh pr create --title "Add script files for $script_name" --body "This PR adds the $script_name script files." --base main --head "community-scripts/ProxmoxVED:$branch_name" --repo "$target_repo"