Skip to content

Commit

Permalink
fix: git-push.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seung365 committed Dec 5, 2024
1 parent 044fc9f commit 3e08248
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/git-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ jobs:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Configure Git
run: |
git config --global user.email "${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}"
git config --global user.name "${{ github.actor }}"
- name: Fetch and merge remote changes
run: |
git remote add destination https://github.com/seung365/alphamail-frontend.git
git fetch destination
git merge destination/main --allow-unrelated-histories
- name: Pushes to another repository
- name: Clean destination repository first
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_KEY }}
Expand All @@ -38,5 +29,18 @@ jobs:
destination-repository-name: 'alphamail-frontend'
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
user-name: ${{ github.actor }}
commit-message: 'Syncing main branch'
commit-message: 'Clean repository before sync'
target-branch: main
force: true
- name: Push updated content
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_KEY }}
with:
source-directory: '.'
destination-github-username: 'seung365'
destination-repository-name: 'alphamail-frontend'
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
user-name: ${{ github.actor }}
commit-message: 'Syncing main branch with updates'
target-branch: main

0 comments on commit 3e08248

Please sign in to comment.