Skip to content

Merge pull request #60 from HuaDeity/main #65

Merge pull request #60 from HuaDeity/main

Merge pull request #60 from HuaDeity/main #65

Workflow file for this run

name: 自动生成配置文件
on:
push:
branches: [master, main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: 自动生成配置文件
run: |
pip3 install -r requirements.txt
python3 generate.py
- name: 提交更改
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "自动生成配置文件" -a
- name: 推送更改
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}