File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ name: Merge PRs and Generate Problem Folders
22
33on :
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
99jobs :
1010 merge-prs-and-create-folders :
11+ if : github.repository_owner == 'Live-Coding-Test'
1112 runs-on : ubuntu-latest
1213
1314 steps :
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
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..."
5455 echo "No open PRs to merge."
5556 fi
5657
57-
5858 - name : Determine Next Test Folder
5959 id : determine-folder
6060 run : |
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
You can’t perform that action at this time.
0 commit comments