update-tools #1572
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: update-tools | |
| on: | |
| schedule: | |
| - cron: "*/10 * * * *" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: write | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v12 | |
| - name: Update tool versions and hashes | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: go run ./cmd/update-tools | |
| - name: Commit & push if changed | |
| run: | | |
| if git diff --quiet; then | |
| echo "No changes" | |
| exit 0 | |
| fi | |
| git config user.name "clawdbot-ci" | |
| git config user.email "ci@clawdbot" | |
| git add -A | |
| git commit -m "update tool releases" | |
| git push |