summaryrefslogtreecommitdiff
path: root/.github/workflows/update-flake.yaml
blob: 95ff49f1fafd607fae4d967202de03404122964b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: update nix flake
# this is to make sure we can build against a
# recent version of nixos-unstable

on:
  schedule:
    - cron: "0 0 * * 6"
  workflow_dispatch:

permissions:
  contents: write
  pull-requests: write

jobs:
  update-flake:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - uses: DeterminateSystems/nix-installer-action@main

      - uses: DeterminateSystems/update-flake-lock@v20
        id: update
        with:
          commit-msg: "deps(flake): update inputs"
          pr-title: "deps(flake): update inputs"

      - name: auto-merge pull request
        shell: bash
        run: gh pr merge --auto --rebase "$PR_ID"
        env:
          GITHUB_TOKEN: ${{ github.token }}
          PR_ID: ${{ steps.update.outputs.pull-request-number }}