From 597e29a501febc7c7125750af529aa17f75b3db6 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 28 Jan 2024 23:39:03 +0200 Subject: [PATCH] CI: don't auto-update This pollutes the commit history. Instead, we update the input inside the check action, so that we have an up to date Hyprland, but don't commit the change. --- .github/workflows/nix-build.yml | 3 +++ .github/workflows/nix-update-inputs.yml | 28 ------------------------- 2 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/nix-update-inputs.yml diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml index 9d11a95..ae3a217 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml @@ -18,4 +18,7 @@ jobs: - uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/magic-nix-cache-action@main + - name: Update inputs + run: nix flake update + - run: nix build .#${{ matrix.package }} -L diff --git a/.github/workflows/nix-update-inputs.yml b/.github/workflows/nix-update-inputs.yml deleted file mode 100644 index eb916c9..0000000 --- a/.github/workflows/nix-update-inputs.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Nix - -on: - schedule: - - cron: '0 0 * * *' # check daily - -jobs: - update: - name: inputs - runs-on: ubuntu-latest - steps: - - name: Clone repository - uses: actions/checkout@v3 - with: - token: ${{ secrets.PAT }} - - - uses: DeterminateSystems/nix-installer-action@main - - name: Update inputs - run: nix flake update - - - name: Commit - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: "[gha] Nix: update inputs" - - update-build: - needs: update - uses: ./.github/workflows/nix-build.yml