From 887de01b8d8f776e41c7141429a63cc0f3bd6c37 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Tue, 22 Oct 2024 23:00:19 +0200 Subject: [PATCH] workflows: update cargo as well (#32) update both the nix flake and cargo packages --- .../{update-flake.yml => update.yml} | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) rename .github/workflows/{update-flake.yml => update.yml} (59%) diff --git a/.github/workflows/update-flake.yml b/.github/workflows/update.yml similarity index 59% rename from .github/workflows/update-flake.yml rename to .github/workflows/update.yml index 6d000ae..0840423 100644 --- a/.github/workflows/update-flake.yml +++ b/.github/workflows/update.yml @@ -1,21 +1,31 @@ -name: update-flake-lock +name: update dependencies on: workflow_dispatch: # allows manual triggering schedule: - cron: '0 4 * * *' # at 04:00 every day jobs: - lockfile: + cargo: runs-on: self-hosted steps: - name: Checkout repository uses: actions/checkout@v4 + - run: nix shell nixpkgs#cargo --command cargo update + + flake: + runs-on: self-hosted + needs: cargo + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - run: nix flake update - name: Check flake uses: DeterminateSystems/flake-checker-action@main + - run: nix build - name: Update Nix Flake Lock uses: DeterminateSystems/update-flake-lock@main with: pr-title: "flake: update flake.lock" - pr-reviewers: itepastra - - run: nix build - - run: nix flake check + pr-labels: | + dependencies + automated