home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

nix-auto-upgrade.yaml (869B)


      1 name: update-flake-lock
      2 on:
      3   workflow_dispatch: # allows manual triggering
      4   schedule:
      5     - cron: '0 0 * * 1' # runs weekly on Sunday at 00:00
      6 
      7 jobs:
      8   lockfile:
      9     runs-on: ubuntu-latest
     10     steps:
     11       - name: Checkout repository
     12         uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
     13       - name: Install Nix
     14         uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v27
     15         with:
     16           extra_nix_config: |
     17             access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
     18       - name: Update flake.lock
     19         uses: DeterminateSystems/update-flake-lock@a2bbe0274e3a0c4194390a1e445f734c597ebc37 # v24
     20         with:
     21           pr-title: "Update flake.lock" # Title of PR to be created
     22           pr-labels: |                  # Labels to be set on the PR
     23             dependencies
     24             automated