Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
e00d99112b | |||
aa902c3538 | |||
8c2dfef874 | |||
e8bb9f761a | |||
073d38a53e |
@ -28,6 +28,11 @@ jobs:
|
||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Update flake.lock
|
||||
uses: DeterminateSystems/update-flake-lock@vX
|
||||
with:
|
||||
pr-title: "Update flake.lock" # Title of PR to be created
|
||||
pr-labels: | # Labels to be set on the PR
|
||||
dependencies
|
||||
automated
|
||||
```
|
||||
|
||||
## Example updating specific input(s)
|
||||
|
19
action.yml
19
action.yml
@ -9,6 +9,18 @@ inputs:
|
||||
description: 'GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT)'
|
||||
required: false
|
||||
default: ${{ github.token }}
|
||||
commit-msg:
|
||||
description: 'The message provided with the commit'
|
||||
required: false
|
||||
default: "flake.lock: Update"
|
||||
pr-title:
|
||||
description: 'The title of the PR to be created'
|
||||
required: false
|
||||
default: "flake.lock: Update"
|
||||
pr-labels:
|
||||
description: 'A comma or newline separated list of labels to set on the Pull Request to be created'
|
||||
required: false
|
||||
default: ''
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@ -18,9 +30,9 @@ runs:
|
||||
for input in ${{ inputs.inputs }}; do
|
||||
inputs+=("--update-input" "$input")
|
||||
done
|
||||
nix flake lock "${inputs[@]}" --commit-lock-file
|
||||
nix flake lock "${inputs[@]}" --commit-lock-file --commit-lockfile-summary "${{ inputs.commit-msg }}"
|
||||
else
|
||||
nix flake update --commit-lock-file
|
||||
nix flake update --commit-lock-file --commit-lockfile-summary "${{ inputs.commit-msg }}"
|
||||
fi
|
||||
shell: bash
|
||||
env:
|
||||
@ -41,8 +53,9 @@ runs:
|
||||
with:
|
||||
branch: update_flake_lock_action
|
||||
delete-branch: true
|
||||
title: "flake.lock: Update"
|
||||
title: ${{ inputs.pr-title }}
|
||||
token: ${{ inputs.token }}
|
||||
labels: ${{ inputs.pr-labels }}
|
||||
body: |
|
||||
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.
|
||||
|
||||
|
Reference in New Issue
Block a user