-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 957 Bytes
/
bingWallpaper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 "[email protected]"
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