Update PSL catalog #1128
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 PSL catalog | |
on: | |
schedule: | |
- cron: "0 1 * * *" | |
push: | |
branches: | |
- master | |
jobs: | |
build_catalog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Setup Miniconda | |
uses: conda-incubator/[email protected] | |
with: | |
activate-environment: catalog-env | |
environment-file: environment.yml | |
python-version: 3.8 | |
auto-activate-base: false | |
- name: Run python script | |
working-directory: ./Tools/Catalog-Builder/ | |
shell: bash -l {0} | |
run: | | |
pip install -e . | |
cd catalog_builder | |
python catalog.py ${{ secrets.GITHUB_TOKEN }} | |
python catalog.py ${{ secrets.GITHUB_TOKEN }} --incubating | |
- name: Commit new changes | |
working-directory: ./ | |
shell: bash -l {0} | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add -A | |
git commit --allow-empty -m "Update PSL-catalog on $(date +'%Y-%m-%d')" | |
git push |