Add GitHub Actions flow to update flake lock automatically

This commit is contained in:
Lan Tian 2025-12-08 19:55:53 -08:00
parent b4b0598879
commit 28369594a1
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B
2 changed files with 30 additions and 0 deletions

6
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

24
.github/workflows/auto-update.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: 'Flake.lock: update Nix dependencies'
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '37 17 * * 5' # runs weekly on Friday at 17:37
jobs:
nix-flake-update:
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/determinate-nix-action@v3
- uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: 'Update Nix flake inputs' # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated