add workflow to update flake

This commit is contained in:
cy 2024-12-29 02:21:03 -05:00
parent 89bd03d400
commit 003652b5d3

20
.github/workflows/update-flake-lock.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: "Update flakes"
on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "0 3 * * *"
permissions:
pull-requests: write
contents: write
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v24