Skip to content

Commit

Permalink
ci: add Nix Flake Update GitHub workflow to keep flake inputs updated
Browse files Browse the repository at this point in the history
This change requires GitHub workflows to have read and write permissions
[1] [2].

[1]: DeterminateSystems/update-flake-lock#75
[2]: DeterminateSystems/update-flake-lock#88
  • Loading branch information
trueNAHO committed Aug 22, 2024
1 parent ad87e25 commit 8793f7e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/nix_flake_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Nix Flake Update

on: # yamllint disable-line rule:truthy
workflow_dispatch:

schedule:
- cron: "0 0 1 * *"

jobs:
nix-flake-update:
runs-on: ubuntu-22.04

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v13
- uses: DeterminateSystems/magic-nix-cache-action@v6

- uses: DeterminateSystems/update-flake-lock@v23
with:
pr-labels: dependencies
pr-title: "stylix: update all flake inputs"

0 comments on commit 8793f7e

Please sign in to comment.