Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
ci(flake): setup update nix flakes workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMtnez committed Jul 30, 2023
1 parent f96f0dd commit 8a1cabe
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/update-flakes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: update-flake
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 4 * * 1' # runs weekly on Monday at 04:00 UTC

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3.5.3

- name: install Nix
uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: update flake.lock
uses: DeterminateSystems/update-flake-lock@v19
with:
token: ${{ secrets.NIX_FLAKES_UPDATE_TOKEN }}

0 comments on commit 8a1cabe

Please sign in to comment.