Skip to content

update-flake-lock

update-flake-lock #88

Workflow file for this run

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