feat: Move commands from workflow to script

This commit is contained in:
David Lapshin 2023-03-28 03:54:19 +03:00
parent e8f289bea3
commit 1145293ec4
2 changed files with 15 additions and 8 deletions

View file

@ -37,11 +37,4 @@ jobs:
python-version: '3.10'
- name: Run the script
run: python3 scripts/update-curated.py && python3 scripts/update-official.py
- name: Generate preset lists
run: |
git config --global user.name 'Gradience Team'
git config --global user.email 'AdwCustomizerTeam@proton.me'
git add -A
git commit -m "ci: Generate preset lists"
git push
run: sh scripts/generate-preset-lists.sh

View file

@ -0,0 +1,14 @@
#!/usr/bin/bash
# Generate lists of presets
python3 scripts/update-official.py
python3 scripts/update-curated.py
# Push
git config --global user.name 'Gradience Team'
git config --global user.email 'AdwCustomizerTeam@proton.me'
git add presets.json
git commit -m "ci: Generate preset list"
git push