Skip to content

update-flake-lock

update-flake-lock #131

name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Set author identity
run: |
git config user.email '${{ github.actor }}@users.noreply.github.com'
git config user.name '${{ github.actor }}'
- run: nix flake update --commit-lock-file
- name: Update fixed output hash
run: .github/update-hash replay.deps
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "Update `fetchAttrs.sha256` hash"
title: "Update flake.lock"
branch: "automation/update-flake-inputs"
labels: "dependencies"
token: "${{ secrets.PR_TOKEN }}"