Skip to content

2025-09-14 문제 풀었어요 #2

2025-09-14 문제 풀었어요

2025-09-14 문제 풀었어요 #2

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