-
Notifications
You must be signed in to change notification settings - Fork 17
32 lines (32 loc) · 1016 Bytes
/
automkconfig.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
name: Automkconfig
on:
push:
paths:
- 'rules/apps/**.json'
- 'rules/hubs/**.json'
jobs:
mkconfig:
runs-on:
- ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.8]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Automkconfig
env:
GITHUB_REPO: github.com/DUpdateSystem/UpgradeAll-rules
GITHUB_COMMIT: ${{ github.event.head_commit.message }}
run: |
git clone https://github.com/DUpdateSystem/UpgradeAll-rules
cd UpgradeAll-rules
python mkconfig.py
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add rules/rules.json
git commit -m "$GITHUB_COMMIT"
git push --force "https://${{ secrets.BOT_TOKEN }}@$GITHUB_REPO" master:master