-
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
ba2f96e
commit 17a64e7
Showing
1 changed file
with
42 additions
and
42 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 |
---|---|---|
@@ -1,45 +1,45 @@ | ||
# # This is a basic workflow to help you get started with Actions | ||
# # # This is a basic workflow to help you get started with Actions | ||
|
||
# name: CI | ||
# # name: CI | ||
|
||
# # # Controls when the workflow will run | ||
# # on: | ||
# # # Triggers the workflow on push or pull request events but only for the "main" branch | ||
# # push: | ||
# # branches: [ "main" ] | ||
# # pull_request: | ||
# # branches: [ "main" ] | ||
|
||
# name: NMIXX News Crawler | ||
|
||
# # Controls when the workflow will run | ||
# on: | ||
# # Triggers the workflow on push or pull request events but only for the "main" branch | ||
# push: | ||
# branches: [ "main" ] | ||
# pull_request: | ||
# branches: [ "main" ] | ||
|
||
name: NMIXX News Crawler | ||
|
||
on: | ||
schedule: | ||
- cron: "0 9 * * *" # 매일 오전 9시에 실행 | ||
workflow_dispatch: # 수동 실행 가능 | ||
|
||
jobs: | ||
crawl: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run NMIXX News Crawler | ||
run: python nmixx_crawler.py | ||
|
||
- name: Upload Latest News | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nmixx-latest-news | ||
path: nmixx_latest_news.txt | ||
# schedule: | ||
# - cron: "0 9 * * *" # 매일 오전 9시에 실행 | ||
# workflow_dispatch: # 수동 실행 가능 | ||
|
||
# jobs: | ||
# crawl: | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Set up Python | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: '3.9' | ||
|
||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install -r requirements.txt | ||
|
||
# - name: Run NMIXX News Crawler | ||
# run: python nmixx_crawler.py | ||
|
||
# - name: Upload Latest News | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: nmixx-latest-news | ||
# path: nmixx_latest_news.txt |