Skip to content

Merge branch 'master' of https://github.com/wu529778790/wu529778790.g… #2

Merge branch 'master' of https://github.com/wu529778790/wu529778790.g…

Merge branch 'master' of https://github.com/wu529778790/wu529778790.g… #2

Workflow file for this run

name: Baidu Push
# 两种触发方式:一、push代码,二、每天国际标准时间23点(北京时间+8即早上7点)运行
on:
push:
schedule:
- cron: "0 23 * * *" # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule
jobs:
bot:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "19"
- name: Install Pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: "Run baiduPush"
run: |
node utils/baiduPush.js https://blog.shenzjd.com && bash baiduPush.sh
env:
BAIDU_TOKEN: ${{ secrets.BAIDU_TOKEN }}