Skip to content

update-bing-walpaper #896

update-bing-walpaper

update-bing-walpaper #896

Workflow file for this run

name: update-bing-walpaper
on:
schedule:
- cron: '0 1 * * *'
push:
branches: [ master ]
env:
TZ: Asia/Shanghai
jobs:
push-bing:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
cache: 'pip' # caching pip dependencies
python-version: 3.9
- name: pip install
run: |
pip install -r requirements.txt
- name: Download
run: |
echo $(date "+%Y-%m-%d %H:%M:%S") > update_time.txt
python main.py
- name: Cmmit files
run: |
git config --global user.email github-actions
git config --global user.name [email protected]
git add -A
git commit --allow-empty -m "`date "+%B %d, %Y🎉"`"
git push origin master