summaryrefslogtreecommitdiff
path: root/.github/actions/flake-update/action.yaml
blob: f26c383e5b047ba37f8ffdc898ec9c4a57a8db95 (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 flake inputs"
description: "wrapper around DeterminateSystems/update-flake-lock"
inputs:
  update-token:
    description: "github write token for creating prs"
    required: true
  github-token:
    description: "github read token for avoid rate limits"
    required: false
    default: ""
  inputs:
    description: "flake inputs to update"
    required: false
    default: ""
  commit-msg:
    required: true
runs:
  using: "composite"
  steps:
    - uses: cachix/install-nix-action@v20
      with:
        github_access_token: ${{ inputs.github-token }}

    - uses: DeterminateSystems/update-flake-lock@v19
      with:
        commit-msg: ${{ inputs.commit-msg }}
        pr-title: ${{ inputs.commit-msg }}
        pr-body: |
          Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.

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