-
-
Notifications
You must be signed in to change notification settings - Fork 38
43 lines (37 loc) · 1 KB
/
submit-pr.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
name: Submit PR
on:
pull_request:
branches:
- main
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
with:
token: ${{ secrets.GITHUB_TOKEN }}
- 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