Skip to content

Python get wallPaper #263

Python get wallPaper

Python get wallPaper #263

Workflow file for this run

name: Python get wallPaper
on:
schedule:
# 定时执行,Runs at 17:00 UTC every day
- cron: '0 17 * * *'
# allows to manually run the job at any time
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: install dep
run: |
python -m pip install --upgrade pip
pip install -r .github/workflows/requirements.txt
- name: Run Python
run: python .github/workflows/wallpaper.py
- name: Commit files
run: |
git config --local user.email "robot@126.com"
git config --local user.name "robot"
git add README.md
git commit -m "update readme.md"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_GIT_TOKEN }}
branch: main