summaryrefslogtreecommitdiff
path: root/.github/workflows/update-inputs.yaml
blob: 35b22d42c39bf0a2dc8f269e2c4ecf7ef4e9bb7f (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
34
35
36
37
38
39
40
41
42
43
44
name: update all inputs

on:
  #schedule:
  #  # run every saturday
  #  - cron: "0 0 * * 6"
  workflow_dispatch:

permissions: read-all

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

    steps:
      - name: checkout repo
        uses: actions/checkout@v3

      - name: install nix
        uses: cachix/install-nix-action@v20
        with:
          github_access_token: ${{ secrets.GITHUB_TOKEN }}

      - name: setup cachix
        uses: cachix/cachix-action@v12
        with:
          name: getchoo

      - name: update all inputs
        uses: DeterminateSystems/update-flake-lock@v19
        with:
          inputs: nixpkgs nixpkgsUnstable
          commit-msg: "chore: update all inputs"
          pr-title: "chore: update all inputs"
          pr-body: |
            Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.

            ```
            ${{ env.GIT_COMMIT_MESSAGE }}
            ```

            bors r+
          nix-options: "--accept-flake-config"
          token: ${{ secrets.FLAKE_UPDATE }}