Skip to content

Commit

Permalink
feat: ✨ chore/cla 브랜치 매일 동기화
Browse files Browse the repository at this point in the history
  • Loading branch information
gracefullight committed Oct 20, 2024
1 parent a80087f commit e79962f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cla-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Merge chore/cla into main

on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch: # 수동으로 실행할 수 있도록 설정 (optional)

jobs:
merge:
runs-on: ubuntu-latest

steps:
- name: Checkout main branch
uses: actions/checkout@v4
with:
ref: main # main 브랜치만 체크아웃

- name: Set up Git
# https://github.com/actions/checkout/pull/1184/files
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Fetch chore/cla branch
run: git fetch origin chore/cla:chore/cla

- name: Merge chore/cla into main
run: |
git checkout main
git merge chore/cla
git push origin main
- name: Handle merge conflicts (if any)
if: failure()
run: echo "Merge conflict occurred. Manual intervention required."

0 comments on commit e79962f

Please sign in to comment.