.github/workflows/main.yaml #33
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
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 |