Skip to content

Arxiv Paper Summarizer #28

Arxiv Paper Summarizer

Arxiv Paper Summarizer #28

name: Arxiv Paper Summarizer
on:
schedule:
- cron: "0 23 * * *" # Run daily at 23 UTC, or 7:00 Shanghai
workflow_dispatch: # Manually trigger the workflow
jobs:
summarize:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env: # Define environment variables
GITHUB_TOKEN: ${{ secrets.LLM_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Set up Git config
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "${{ secrets.GIT_EMAIL }}"
git config --global credential.helper cache
echo "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com" > ~/.git-credentials
- name: Run Paper Summarizer, commit, push and create PR
run: |
python main.py