-
-
Notifications
You must be signed in to change notification settings - Fork 114
46 lines (37 loc) · 1.18 KB
/
indices.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
44
45
46
name: Indices
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
update-indices:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: update platforms/index.js
run: cd platforms && python generate_index.py
- name: update platform_wallpapers_packs/index.js
run: cd themes/platform_wallpapers_packs && python generate_index.py
- name: update platform_thumbnails_packs/index.js
run: cd themes/platform_thumbnails_packs && python generate_index.py
- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "updated indices by GitHub Actions" --allow-empty)
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main