updateBydszb #1482
This file contains hidden or 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: 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 |