Skip to content

Commit

Permalink
ci: nix-flake update workflow
Browse files Browse the repository at this point in the history
Introduces a GitHub Actions workflow
to update the flake.lock file for nixpkgs.
This allows us to detect breaking changes in dependencies,
preventing peerswap from failing to build.
  • Loading branch information
YusukeShimizu committed Dec 18, 2024
1 parent 4a17a06 commit c7523b2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/nix-flake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * *' # runs daily at 00:00
push:
branches:
- master
pull_request:
branches: [master]

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "Update flake.lock" # Title of PR to be created
base: "nix-update-workflow"
pr-labels: | # Labels to be set on the PR
dependencies
automated

0 comments on commit c7523b2

Please sign in to comment.