update_image #663
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_image | |
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '30 1 * * *' | |
workflow_dispatch: | |
jobs: | |
# Set the job key. The key is displayed as the job name | |
# when a job name is not provided | |
update_image: | |
# Name the Job | |
name: update image from bing.com | |
# Set the type of machine to run on | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 5 | |
steps: | |
# Set up Node.js | |
- name: Set up Node | |
uses: actions/setup-node@v2.5.2 | |
with: | |
node-version: '16' | |
# Checks out a copy of your repository | |
- name: Checkout code | |
uses: actions/checkout@v2.6.0 | |
- name: fetch an image from bing.com | |
run: ./bing-wallpaper.py | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'update image from bing.com' | |
add: '*.jpg' |