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.
This commit is contained in:
Mihai Fufezan 2024-01-28 23:39:03 +02:00
parent 2cdc4a61ac
commit 597e29a501
No known key found for this signature in database
2 changed files with 3 additions and 28 deletions

View file

@ -18,4 +18,7 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main - uses: DeterminateSystems/magic-nix-cache-action@main
- name: Update inputs
run: nix flake update
- run: nix build .#${{ matrix.package }} -L - run: nix build .#${{ matrix.package }} -L

View file

@ -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