name: Check upstream updates on: schedule: - cron: "0 0 * * *" workflow_dispatch: permissions: contents: write jobs: # 检查 jenkinsci/docker-inbound-agent 仓库的最新版本,并使用 actions/github-script 向 LATEST_VERSION 文件写入最新版本号。 check-updates: timeout-minutes: 30 runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Check updates run: chmod +x ./update-version.sh && ./update-version.sh - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Update LATEST_VERSION commit_options: '--no-verify' file_pattern: LATEST_VERSION