-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a80087f
commit e79962f
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
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." |