blob: cb70c94dc6d96a89f49ef3e3b303fa0d1fe07fcf (
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
|
name: update flake lock
on:
workflow_call:
inputs:
commit-msg:
description: summary for lockfile commit
required: true
type: string
inputs:
description: flake inputs to update
required: false
default: ""
type: string
secrets:
token:
description: PAT for creating creating/merging the PR
required: true
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- name: update lockfile
uses: DeterminateSystems/update-flake-lock@v20
id: update
with:
commit-msg: ${{ inputs.commit-msg }}
inputs: ${{ inputs.inputs }}
pr-title: ${{ inputs.commit-msg }}
token: ${{ secrets.token }}
- name: enable auto-merge
shell: bash
run: gh pr merge --auto --rebase "$PR_ID"
env:
GITHUB_TOKEN: ${{ secrets.token }}
PR_ID: ${{ steps.update.outputs.pull-request-number }}
|