vuepress-theme-vdoing/.github/workflows/baiduPush.yml

17 lines
595 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 利用GitHub Actions每天定时给百度推送链接提高收录率 ##
name: baiduPush
# 两种触发方式一、push代码二、每天国际标准时间23点北京时间+8即早上7点运行
on:
push:
schedule:
- cron: '0 23 * * *'
jobs:
bot:
runs-on: ubuntu-latest # 运行环境为最新版的Ubuntu
steps:
- name: 'Checkout codes' # 步骤一,获取仓库代码
uses: actions/checkout@v1
- name: 'Run baiduPush.sh' # 步骤二执行sh命令文件
run: bash ./baiduPush.sh # 注意,运行目录和文件是同一目录