Bump nix-clawdbot #1168
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: Bump nix-clawdbot | |
| on: | |
| schedule: | |
| - cron: "*/5 * * * *" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: write | |
| jobs: | |
| bump: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v27 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| - name: Update nix-clawdbot input | |
| run: | | |
| set -euo pipefail | |
| nix flake update --update-input nix-clawdbot | |
| if git diff --quiet flake.lock; then | |
| echo "No nix-clawdbot changes." | |
| exit 0 | |
| fi | |
| git config user.name "clawdbot-ci" | |
| git config user.email "ci@clawdbot.local" | |
| git add flake.lock | |
| git commit -m "chore: bump nix-clawdbot" | |
| git push |