2026-02-08 ๋ฌธ์ ํ์์ด์ #26
Workflow file for this run
This file contains hidden or 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
| # ๋จธ์ง ์ดํ์ upload๋ฅผ main์ผ๋ก ๋๊ธฐํ | |
| name: After Merge | |
| on: | |
| pull_request: | |
| types: [closed] | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: after-merge-sync | |
| cancel-in-progress: false | |
| jobs: | |
| sync-upload: | |
| if: > | |
| github.event.pull_request.merged == true && | |
| github.event.pull_request.base.ref == 'main' && | |
| github.event.pull_request.head.ref == 'upload' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Sync upload to main | |
| run: | | |
| git fetch origin main --prune | |
| # main์ ๊ธฐ์ค์ผ๋ก ๋ก์ปฌ upload ๋ธ๋์น๋ฅผ ์ฌ์์ฑ (์์ผ๋ฉด ๋ฎ์ด์์ฐ๊ธฐ) | |
| git switch -C upload origin/main | |
| git push --force-with-lease origin upload |