diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index fc2bc58..355b7f0 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -82,9 +82,9 @@ jobs: git checkout -b "$branch_name" upstream/main - cp "ct/$script_name.sh" . - cp "install/$script_name-install.sh" . - cp "json/$script_name.json" . + 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 git add . git commit -m "$commit_message"