Generate catalog #291
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: Generate catalog | |
on: | |
schedule: | |
- cron: 0 5 * * 1 | |
jobs: | |
generate-catalog: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup environment | |
run: conda create --quiet --name stacks | |
- name: generate-catalog | |
shell: bash -l {0} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate stacks | |
conda install scikit-learn pandas | |
pip install jinja2 pygithub gitpython pyaml | |
python scripts/generate-catalog.py | |
python scripts/generate-graph-data.py | |
- name: Commit files | |
id: commit | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add _recipes/ | |
git commit -m "Add changes" -a | |
changes=$(git diff --name-only | wc -l) | |
git status | |
printf "Changes - $changes\n" | |
- name: Push changes | |
continue-on-error: true | |
uses: ad-m/github-push-action@057a6ba835d986bfe495dd476a6c4db1d5f9503c | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |