feat: merge from master #199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |