Update Screenshot #1232
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: 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 |