diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 181769a..336906b 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,24 +1,24 @@ -name: update-flake-lock +name: "Flake.lock: update Nix dependencies" on: - workflow_dispatch: + workflow_dispatch: # allows manual triggering schedule: - - cron: "0 0 * * 0" + - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 jobs: - lockfile: - runs-on: ubuntu-latest + nix-flake-update: permissions: + contents: write id-token: write - contents: read + issues: write + pull-requests: write + runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Install Determinate Nix - uses: DeterminateSystems/determinate-nix-action@v3 - - name: Enable FlakeHub Cache - uses: DeterminateSystems/flakehub-cache-action@main - - name: Update flake.lock - uses: ./. + - uses: actions/checkout@v4 + - uses: DeterminateSystems/determinate-nix-action@v3 + - uses: DeterminateSystems/update-flake-lock@main with: - _internal-strict-mode: true + pr-title: "Update Nix flake inputs" # Title of PR to be created + pr-labels: | # Labels to be set on the PR + dependencies + automated