-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (39 loc) · 1.31 KB
/
daily_rebuild_outputs.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
44
45
46
47
48
49
name: Daily Rebuild Outputs
on:
schedule:
- cron: 0 0 * * *
permissions: write-all
jobs:
build:
if: github.repository == 'mtgjson/mtg-sealed-content'
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4
with:
lfs: true
- name: setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute new products
env:
TCG_AUTH: ${{ secrets.TCG_AUTH }}
run: python scripts/load_new_products.py $TCG_AUTH
- name: execute gatherer build
run: python scripts/generate_original_printing_details.py
- name: execute manual products compiler
run: python scripts/new_products_compiler.py
- name: execute contents compiler
run: python scripts/product_contents_compiler.py
- name: execute card to product mapper
run: python scripts/card_to_product_compiler.py -o outputs/card_map.json
- name: commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Pull new daily content
push_options: --force