From e6efb75f0ef5fc8440f2ec67bfcbf342ce68c7e3 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Mon, 10 Mar 2025 21:13:13 +0100 Subject: [PATCH] Update move-to-main-repo.yaml --- .github/workflows/move-to-main-repo.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index dd1a925..287208e 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -83,12 +83,10 @@ jobs: 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" upstream/main + git checkout -b "$branch_name" git status @@ -103,6 +101,10 @@ jobs: git push origin "$branch_name" + git remote add upstream https://github.com/${target_repo}.git + + git fetch upstream + git status echo ${{ secrets.MAIN_REPO_WF }} > mytoken.txt