Skip to content

Commit

Permalink
Auto Push
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoSiQian committed Aug 18, 2023
1 parent 18c260f commit b885478
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Push

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
# 获取子模块的代码
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run main.py
run: python main.py
- name: Push changes
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
git commit -m "${{ github.event.head_commit.message }}"
git push

0 comments on commit b885478

Please sign in to comment.