From 0d7d3b5a0716ee5a8c5df87b1b315d2a19d3eb22 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Tue, 11 Mar 2025 10:29:46 +0100 Subject: [PATCH] WF --- .github/workflows/move-to-main-repo.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index 434d62d..17d17ac 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -82,11 +82,11 @@ jobs: git remote add upstream https://github.com/${target_repo}.git - git switch -c "upstream/$branch_name" + git checkout -b "$branch_name" - git checkout origin/main "ct/$script_name.sh" . - git checkout origin/main "install/$script_name-install.sh" . - git checkout origin/main "json/$script_name.json" . + cp "ct/$script_name.sh" . + cp "install/$script_name-install.sh" . + cp "json/$script_name.json" . git add . @@ -94,4 +94,4 @@ jobs: 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." + gh pr create --base main --head "$branch_name" --title "$commit_message" --body "This PR adds the script files for $script_name." -R $target_repo