From 055c68ba52671733df2303b414b4f2491a5477dc Mon Sep 17 00:00:00 2001 From: Jiwon Choi <81795729+Choi-Jiwon-38@users.noreply.github.com> Date: Wed, 2 Oct 2024 22:07:57 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20`git-push.yml`=20=EB=A1=9C=EC=A7=81?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/git-push.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/git-push.yml b/.github/workflows/git-push.yml index 909a104..d588c03 100644 --- a/.github/workflows/git-push.yml +++ b/.github/workflows/git-push.yml @@ -18,15 +18,14 @@ jobs: - name: Configure git run: | - git config --global user.name "GitHub Action" - git config --global user.email "action@github.com" + git remote add forked-repo https://${{ secrets.JIWON_GITHUB_KEY }}@github.com/Choi-Jiwon-38/workinkorea.git + git config user.name "Choi-Jiwon-38" + git config user.email "chlrhwldnjs@naver.com" - - name: Add fork as remote + - name: Push changes to forked-repo run: | - git remote add fork https://${{secrets.JIWON_GITHUB_KEY}}@github.com/Choi-Jiwon-38/workinkorea.git - git fetch fork - git checkout develop + git push -f forked-repo develop - - name: Push to forked repo + - name: Clean up run: | - git push fork develop --force-with-lease + git remote remove forked-repo