Skip to content

2026-02-08 ๋ฌธ์ œ ํ’€์—ˆ์–ด์š” #26

2026-02-08 ๋ฌธ์ œ ํ’€์—ˆ์–ด์š”

2026-02-08 ๋ฌธ์ œ ํ’€์—ˆ์–ด์š” #26

Workflow file for this run

# ๋จธ์ง€ ์ดํ›„์— 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