summaryrefslogtreecommitdiff
path: root/.github/workflows/update-inputs.yaml
blob: 04803cb939579280ca67c29d5d8429302fd7e0b9 (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
name: update inputs

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

permissions:
  contents: write

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: update all inputs
        uses: DeterminateSystems/update-flake-lock@v19
        with:
          commit-msg: "flake: update inputs"
          pr-title: "flake: update all inputs"
          nix-options: "--accept-flake-config"
          token: ${{ secrets.GITHUB_TOKEN }}