forked from yfun-lab/bing-wallpaper
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 872 Bytes
/
main.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
name: Update Screenshot
on:
push:
branches:
- master
schedule:
- cron: '6 2 * * *'
jobs:
download:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
# Used to pull python distributions from actions/python-versions. Since there's a default, this is typically not supplied by the user.
token: ${{ secrets.PERSONAL_TOKEN }} # optional, default is ${{ github.token }}
- name: Download
run: |
python main.py
- name: Push
run: |
git config --global user.email "[email protected]"
git config --global user.name "iColaBot"
git add -A
git commit --allow-empty -m "Update Bing Wallpaper"
#git pull origin master
git push origin master