update-flake-lock #81
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-flake-lock | |
| on: | |
| workflow_dispatch: # allows manual triggering | |
| schedule: | |
| - cron: "0 4 */7 * *" # runs 04:00 every 7 days | |
| jobs: | |
| lockfile: | |
| name: Update the flake inputs | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 40 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v20 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Update flake.lock | |
| id: update | |
| uses: DeterminateSystems/update-flake-lock@v20 | |
| with: | |
| pr-title: "Update flake.lock" | |
| pr-labels: | # Labels to be set on the PR | |
| dependencies | |
| automated | |
| token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} | |
| - uses: peter-evans/enable-pull-request-automerge@v3 | |
| with: | |
| pull-request-number: ${{ github.event.pull_request.number }} | |
| merge-method: squash |