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

Link: #520
  • Loading branch information
trueNAHO committed Nov 26, 2024
1 parent ef81ad9 commit 4be09d0
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@v16
- uses: DeterminateSystems/magic-nix-cache-action@v8

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

0 comments on commit 4be09d0

Please sign in to comment.