File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Sync and Summarize FE News
22
33on :
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
88jobs :
99 sync :
1313 uses : actions/checkout@v4
1414 with :
1515 ref : master
16+ fetch-depth : 0 # merge를 위해 전체 히스토리 필요
1617
1718 - name : Set up Git
1819 run : |
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 : |
4041
4142 summarize :
4243 runs-on : ubuntu-latest
44+ needs : sync # ⏳ sync 완료 후 실행
4345 steps :
4446 - name : 📅 현재 년/월 추출 및 저장
4547 run : |
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 :
You can’t perform that action at this time.
0 commit comments