Merge to Main #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge to Main | |
on: | |
workflow_dispatch: # 수동 실행을 위한 트리거 | |
jobs: | |
merge-to-main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Fetch all branches | |
run: git fetch origin +refs/heads/*:refs/remotes/origin/dev | |
- name: Merge dev to main | |
run: | | |
git fetch origin | |
git checkout main | |
git pull origin main | |
git merge origin/dev --no-ff --no-edit | |
git push origin main |