Skip to content

update-flake-lock

update-flake-lock #7

name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * 0'
permissions:
contents: write
pull-requests: write
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Update flake.lock
id: update
uses: DeterminateSystems/update-flake-lock@v28
with:
token: ${{ secrets.WORKFLOW_PR_TOKEN }}
pr-body: |
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.
```
{{ env.GIT_COMMIT_MESSAGE }}
```
pr-labels: "automated"
- name: Print PR number
run: echo Pull request number is ${{ steps.update.outputs.pull-request-number }}.