Skip to content

Commit d94205c

Browse files
authored
Update sync.yml
1 parent ae2e95d commit d94205c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/sync.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Sync and Summarize FE News
22

33
on:
44
schedule:
5-
- cron: '0 12 10 * *' # 매월 10일 오후 9시 KST (한국시간 기준 9시)
6-
workflow_dispatch: # 수동 실행 가능
5+
- cron: '0 12 10 * *' # 매월 10일 오후 9시 KST
6+
workflow_dispatch:
77

88
jobs:
99
sync:
@@ -13,6 +13,7 @@ jobs:
1313
uses: actions/checkout@v4
1414
with:
1515
ref: master
16+
fetch-depth: 0 # merge를 위해 전체 히스토리 필요
1617

1718
- name: Set up Git
1819
run: |
@@ -26,7 +27,7 @@ jobs:
2627
2728
- name: 💥 기존 이슈 파일 삭제로 merge conflict 방지
2829
run: |
29-
rm -f issues/*.md
30+
rm -f issues/*.md || true
3031
3132
- name: Merge upstream changes
3233
run: |
@@ -40,6 +41,7 @@ jobs:
4041
4142
summarize:
4243
runs-on: ubuntu-latest
44+
needs: sync # ⏳ sync 완료 후 실행
4345
steps:
4446
- name: 📅 현재 년/월 추출 및 저장
4547
run: |
@@ -49,9 +51,9 @@ jobs:
4951
run: |
5052
curl -L https://raw.githubusercontent.com/naver/fe-news/master/issues/${{ env.YEAR_MONTH }}.md -o raw.md
5153
52-
- name: 📑 뉴스 요약 추출
54+
- name: 📑 요약 파일 생성 (임시: raw 복사)
5355
run: |
54-
node summarize.js raw.md > summary.txt
56+
cp raw.md summary.txt
5557
5658
- name: 📤 텔레그램으로 요약 전송
5759
env:

0 commit comments

Comments
 (0)