From bda5fee5fe8ddaf4d1e55b10289d81cc9a06c9be Mon Sep 17 00:00:00 2001 From: ibizaman Date: Mon, 25 Dec 2023 01:57:29 -0800 Subject: [PATCH] add flake lock update github action refs #61 --- .github/workflows/lock-update.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/lock-update.yaml diff --git a/.github/workflows/lock-update.yaml b/.github/workflows/lock-update.yaml new file mode 100644 index 0000000..2b89d8e --- /dev/null +++ b/.github/workflows/lock-update.yaml @@ -0,0 +1,21 @@ +name: update-flake-lock +on: + workflow_dispatch: # allows manual triggering + pull_request: # triggers on every Pull Request + schedule: + - cron: '0 * * * 0' # runs daily at 00:00 + +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + extra-conf: "system-features = nixos-test benchmark big-parallel kvm" + - name: Update flake.lock + if: ${{ github.event_name != 'pull_request' }} + uses: DeterminateSystems/update-flake-lock@main