From c7523b21bba706e14b22c45e3185896cd10fb71f Mon Sep 17 00:00:00 2001 From: bruwbird Date: Wed, 18 Dec 2024 16:22:21 +0900 Subject: [PATCH] ci: nix-flake update workflow 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. --- .github/workflows/nix-flake.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/nix-flake.yml diff --git a/.github/workflows/nix-flake.yml b/.github/workflows/nix-flake.yml new file mode 100644 index 00000000..1d287bfe --- /dev/null +++ b/.github/workflows/nix-flake.yml @@ -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 \ No newline at end of file