Skip to content

.github/workflows/main.yaml #35

.github/workflows/main.yaml

.github/workflows/main.yaml #35

Workflow file for this run

on:
schedule:
- cron: "0 8 1 * *"
workflow_dispatch:
jobs:
update_arxiv:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: install fonts
run: |
cd /tmp
sudo apt-get install -y fontconfig wget
wget https://github.com/hughplay/memo/raw/master/code/snippet/drawing/plot_fonts.tar.gz
tar zxvf plot_fonts.tar.gz
sudo cp plot_fonts/* /usr/share/fonts/truetype/
sudo fc-cache -fv
cd -
- name: setup python
uses: actions/[email protected]
with:
python-version: 3.8
cache: 'pip'
- name: install and run
run: |
pip install -r requirements.txt
python tool/update_arxiv.py
- name: Git Auto Commit
uses: stefanzweifel/[email protected]
with:
commit_message: automatic update