From 9b1165f703f36969a78ef9bb9927a9cd6869568e Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Tue, 11 Mar 2025 11:55:02 +0100 Subject: [PATCH] WF --- .github/workflows/move-to-main-repo.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index 1c35cc8..a96c568 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -84,8 +84,7 @@ jobs: branch_name="add-script-$script_name" commit_message="Add script files for $script_name" - git remote add upstream https://github.com/${target_repo}.git - git fetch upstream + git checkout -b "$branch_name" cp "ct/$script_name.sh" . @@ -98,7 +97,8 @@ jobs: git config --unset-all http.https://github.com/.extraheader - git auth status + git remote add upstream https://github.com/${target_repo}.git + git fetch upstream git push upstream "$branch_name" gh pr create --base main --head "$branch_name" --title "$commit_message" --body "This PR adds the script files for $script_name." -R $target_repo