Create lock.yml

This commit is contained in:
Ren Lin 2025-05-27 09:04:30 -07:00 committed by GitHub
parent b411001d76
commit 5e9c4cefa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

24
.github/workflows/lock.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
# Runs weekly at 00:00 UTC on Sunday
- cron: "0 0 * * 0"
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
github-token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
pr-title: "deps(flake.lock): update"
pr-labels: |
dependencies,auto-merge
pr-assignees: youwen5