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"