theme-store/.github/workflows/submit-pr.yml
Bryan Galdámez 80842c45a7
refactor(scripts): added compatibility layer with old prefs style, convert prefs to new style on theme rebuild (#424)
* refactor(scripts): replaced hyphens with underscores in script names

* test(rebuild_themes): debug logs

* Rebuild themes.json after theme submission

* refactor(rebuild_themes): added preferences loading

* fix(submit-pr): fixed dependencies

* debug(rebuild_themes): add pre print

* feature(rebuild_themes): save preferences to file

* feature(rebuild_themes): add ident

* Rebuild themes.json after theme submission

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-21 06:58:24 +02:00

39 lines
941 B
YAML

name: Submit PR
on:
pull_request:
types: [closed]
workflow_dispatch:
jobs:
submitPR:
permissions: write-all
name: Rebuild themes after theme submission
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Setup python modules
run: |
pip3 install requests
- name: Setup Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Rebuild all themes
run: |
python3 scripts/rebuild_themes.py
- name: Commit changes
run: |
git add themes.json
git add themes/*
git commit -m "Rebuild themes.json after theme submission"
git push