mirror of
https://github.com/GradienceTeam/Community.git
synced 2024-05-27 18:31:45 +00:00
feat: Move commands from workflow to script
This commit is contained in:
parent
e8f289bea3
commit
1145293ec4
9
.github/workflows/generate-preset-lists.yml
vendored
9
.github/workflows/generate-preset-lists.yml
vendored
|
@ -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
|
||||
|
|
14
scripts/generate-preset-lists.sh
Executable file
14
scripts/generate-preset-lists.sh
Executable 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
|
Loading…
Reference in a new issue