2023-02-27 02:55:53 +03:00
|
|
|
name: Execute Python Scripts on New Theme-YML Files
|
|
|
|
|
|
|
|
on:
|
2023-02-27 03:06:35 +03:00
|
|
|
workflow_dispatch:
|
2023-02-27 02:55:53 +03:00
|
|
|
push:
|
|
|
|
paths:
|
2023-02-27 23:36:08 +03:00
|
|
|
- 'themes/*'
|
2021-01-23 19:40:50 +03:00
|
|
|
|
|
|
|
jobs:
|
2023-02-27 02:55:53 +03:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
2021-01-23 19:40:50 +03:00
|
|
|
steps:
|
|
|
|
|
2023-02-27 02:55:53 +03:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Update ubuntu
|
|
|
|
run: |
|
2023-02-27 03:14:10 +03:00
|
|
|
sudo apt-get update
|
2023-02-27 02:55:53 +03:00
|
|
|
echo 🏅
|
|
|
|
|
2023-02-27 03:06:35 +03:00
|
|
|
- name: Install git
|
|
|
|
run: |
|
2023-02-27 03:14:10 +03:00
|
|
|
sudo apt-get install git -y
|
2023-02-27 03:06:35 +03:00
|
|
|
echo 🏅
|
|
|
|
|
2023-02-27 02:55:53 +03:00
|
|
|
- name: Install python3
|
|
|
|
run: |
|
2023-02-27 03:14:10 +03:00
|
|
|
sudo apt-get install python3 -y
|
2023-02-27 02:55:53 +03:00
|
|
|
echo 🏅
|
|
|
|
|
|
|
|
- name: Install pip3
|
|
|
|
run: |
|
2023-02-27 03:14:10 +03:00
|
|
|
sudo apt-get install -y python3-pip
|
2023-02-27 02:55:53 +03:00
|
|
|
echo 🏅
|
|
|
|
|
|
|
|
- name: Python3 requirements.txt
|
|
|
|
run: |
|
2023-02-27 03:11:58 +03:00
|
|
|
pip3 install -r requirements.txt
|
2023-02-27 02:55:53 +03:00
|
|
|
echo 🏅
|
|
|
|
|
|
|
|
- name: Generate json
|
|
|
|
run: |
|
|
|
|
python3 tools/generatJson.py
|
|
|
|
echo 🏅
|
|
|
|
|
2023-02-27 05:47:22 +03:00
|
|
|
- name: Generate json files
|
|
|
|
run: |
|
|
|
|
python3 tools/generateJsonFiles.py
|
|
|
|
echo 🏅
|
|
|
|
|
2023-02-27 02:55:53 +03:00
|
|
|
- name: Generate Installers
|
|
|
|
run: |
|
|
|
|
python3 tools/generateShFiles.py
|
|
|
|
echo 🏅
|
2021-01-23 19:40:50 +03:00
|
|
|
|
2023-02-27 20:43:11 +03:00
|
|
|
- name: update themes in gogh file
|
|
|
|
run: |
|
|
|
|
python3 tools/updateThemes.py
|
|
|
|
echo 🏅
|
|
|
|
|
2023-02-27 02:55:53 +03:00
|
|
|
- name: Git commit
|
|
|
|
run: |
|
|
|
|
git config user.name github-actions[bot]
|
|
|
|
git config user.email github-actions[bot]@github.com
|
|
|
|
git add .
|
2023-02-27 03:06:35 +03:00
|
|
|
git commit -m "------- Generate Themes -------"
|
2023-02-27 02:55:53 +03:00
|
|
|
git push
|