-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1.27 KB
/
generate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 }}