fix: Support Custom Commit Message
This commit is contained in:
parent
8c2dfef874
commit
aa902c3538
1 changed files with 5 additions and 5 deletions
10
action.yml
10
action.yml
|
@ -9,8 +9,8 @@ inputs:
|
||||||
description: 'GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT)'
|
description: 'GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT)'
|
||||||
required: false
|
required: false
|
||||||
default: ${{ github.token }}
|
default: ${{ github.token }}
|
||||||
pr-title:
|
commit-msg:
|
||||||
description: 'The title of the Pull Request to be created'
|
description: 'The commit message as well as title of the PR to be created'
|
||||||
required: false
|
required: false
|
||||||
default: "flake.lock: Update"
|
default: "flake.lock: Update"
|
||||||
pr-labels:
|
pr-labels:
|
||||||
|
@ -26,9 +26,9 @@ runs:
|
||||||
for input in ${{ inputs.inputs }}; do
|
for input in ${{ inputs.inputs }}; do
|
||||||
inputs+=("--update-input" "$input")
|
inputs+=("--update-input" "$input")
|
||||||
done
|
done
|
||||||
nix flake lock "${inputs[@]}" --commit-lock-file
|
nix flake lock "${inputs[@]}" --commit-lock-file --commit-lockfile-summary "${{ inputs.commit-msg }}"
|
||||||
else
|
else
|
||||||
nix flake update --commit-lock-file
|
nix flake update --commit-lock-file --commit-lockfile-summary "${{ inputs.commit-msg }}"
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
@ -49,7 +49,7 @@ runs:
|
||||||
with:
|
with:
|
||||||
branch: update_flake_lock_action
|
branch: update_flake_lock_action
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
title: ${{ inputs.pr-title }}
|
title: ${{ inputs.commit-msg }}
|
||||||
token: ${{ inputs.token }}
|
token: ${{ inputs.token }}
|
||||||
labels: ${{ inputs.pr-labels }}
|
labels: ${{ inputs.pr-labels }}
|
||||||
body: |
|
body: |
|
||||||
|
|
Loading…
Reference in a new issue