Skip to content

updateBydszb

updateBydszb #1482

Workflow file for this run

name: updateBydszb
on:
workflow_dispatch:
# push:
schedule:
- cron: 0 */1 * * *
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: 检出
uses: actions/checkout@v6
- name: 创建Nodejs
uses: actions/setup-node@v6
with:
node-version: 24
- name: 更新内容
run: node fetchURLByzbpro.js
- name: 推送
run: |
if ! git diff --quiet --exit-code || [ -n "$(git status --porcelain)" ]; then
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add .
git commit -m "Update by GitHub Actions"
git push
fi