bili计划任务 #76939
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: bili计划任务 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '*/5 * * * *' | |
watch: | |
types: started | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# if: github.event.repository.owner.id == github.event.sender.id # 解决this job was skipped的问题 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 初始化Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: 'Install dependencies' | |
run: pip install -r requirements.txt | |
- name: '开始运行' | |
run: python bilibili.py | |
- name: commit | |
run: | | |
git config --global user.email [email protected] | |
git config --global user.name marsggbo | |
git add . | |
git commit -m "update" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |