Skip to content

Commit

Permalink
refactor: git-push.yml 로직 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
Choi-Jiwon-38 authored Oct 2, 2024
1 parent 6712f5c commit 055c68b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/git-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ jobs:

- name: Configure git
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
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 "[email protected]"
- 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

0 comments on commit 055c68b

Please sign in to comment.