Skip to content

Commit 6ddc96d

Browse files
committed
메인래포에서만 워크플로우 돌도록 수정
1 parent 38d6212 commit 6ddc96d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/merge-and-generate-problems.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: Merge PRs and Generate Problem Folders
22

33
on:
44
schedule:
5-
- cron: '00 12 * * 1' # 월요일 21시 00분 KST (UTC 12:00)
6-
- cron: '00 10 * * 4' # 목요일 19시 00분 KST (UTC 10:00)
7-
- cron: '00 5 * * 5' # 금요일 14시 00분 KST (UTC 5:00)
5+
- cron: '00 12 * * 1' # 월요일 21시 00분 KST (UTC 12:00)
6+
- cron: '00 10 * * 4' # 목요일 19시 00분 KST (UTC 10:00)
7+
- cron: '00 5 * * 5' # 금요일 14시 00분 KST (UTC 5:00)
88

99
jobs:
1010
merge-prs-and-create-folders:
11+
if: github.repository_owner == 'Live-Coding-Test'
1112
runs-on: ubuntu-latest
1213

1314
steps:
@@ -24,7 +25,7 @@ jobs:
2425
- name: Set Up GitHub CLI
2526
uses: actions/setup-node@v3
2627
with:
27-
node-version: '16'
28+
node-version: '16'
2829
- name: Install GitHub CLI
2930
run: |
3031
sudo apt-get install gh -y
@@ -33,7 +34,7 @@ jobs:
3334
- name: Merge All Open PRs
3435
run: |
3536
PR_LIST=$(gh pr list --state open --json number -q '.[].number')
36-
37+
3738
if [ -n "$PR_LIST" ]; then
3839
for PR in $PR_LIST; do
3940
echo "Fetching details for PR #$PR..."
@@ -54,7 +55,6 @@ jobs:
5455
echo "No open PRs to merge."
5556
fi
5657
57-
5858
- name: Determine Next Test Folder
5959
id: determine-folder
6060
run: |
@@ -82,4 +82,4 @@ jobs:
8282
git add .
8383
NEXT_TEST_NUM=$(echo $NEXT_TEST | grep -o '[0-9]*')
8484
git commit -m "$NEXT_TEST_NUM차 폴더 생성"
85-
git push origin main
85+
git push origin main

0 commit comments

Comments
 (0)