Skip to content

Commit

Permalink
Create arxiv-daily.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guanyilun authored Jan 27, 2024
1 parent 16c86b8 commit 1a1bb06
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/arxiv-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'arxiv-daily'

on:
workflow_dispatch:
push:
branches: [ main ]
schedule:
- cron: '30 3 * * *'

jobs:
arxiv-daily:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: set up python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: run crawler
env:
ENDPOINT: ${{ secrets.ENDPOINT }}
KEY_ID: ${{ secrets.KEY_ID }}
APPLICATION_KEY: ${{ secrets.APPLICATION_KEY }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
TZ: 'America/New_York'
run: |
python scripts/crawl.py

0 comments on commit 1a1bb06

Please sign in to comment.