update-vizier-figure #104
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
name: update-vizier-figure | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'Who triggered this build (enter github username to tag yourself)?' | |
required: true | |
default: 'weekly run' | |
schedule: | |
# runs every monday at midnight | |
- cron: '0 0 * * 1' | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: install requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: generate figure | |
env: | |
ADS_API_KEY: ${{ secrets.ADS_API_KEY }} | |
run: | | |
python vizier_stats.py ${{ env.ADS_API_KEY }} | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add --all | |
git commit -m "update vizier figure" | |
git push |