Skip to content

Commit

Permalink
fix(ci): fix dev branch Automkconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
xz-dev committed Jul 24, 2024
1 parent 47ca6f0 commit 8bd44bb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/automkconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ jobs:
strategy:
max-parallel: 1
matrix:
python-version: [3.8]
python-version: [3.12]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ GITHUB_REF_NAME }}
- 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 --branch $GITHUB_REF_NAME 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]"
PYTHONPATH=./scripts/make/ python ./scripts/make/mkconfig.py
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add rules/rules.json
git commit -m "$GITHUB_COMMIT"
git push --force "https://${{ secrets.BOT_TOKEN }}@$GITHUB_REPO" master:master
git commit -m "$GITHUB_COMMIT"
git push

0 comments on commit 8bd44bb

Please sign in to comment.