CI feedback

This commit is contained in:
Judson Lester 2022-11-04 10:21:23 -07:00
parent 8e2a4ea6d8
commit caae4dc74a
No known key found for this signature in database
GPG Key ID: 12E21E4B9A3F82AA
2 changed files with 7 additions and 7 deletions

View File

@ -10,9 +10,9 @@ inputs:
required: false
default: ${{ github.token }}
commit-with-token:
description: 'Set to true to produce a verified commit with token'
description: 'Set to "true" to produce a verified commit with token'
required: false
default: false
default: ''
commit-msg:
description: 'The message provided with the commit'
required: false

View File

@ -6,9 +6,9 @@ if [[ -n "$PATH_TO_FLAKE_DIR" ]]; then
fi
commitArg=""
if [[ "$COMMIT_WITH_TOKEN" != true ]]; then
commitArg="--commit-lock-file "
if [[ "$COMMIT_WITH_TOKEN" != "true" ]]; then
# Commit happening in next step
commitArg="suppress"
fi
if [[ -n "$TARGETS" ]]; then
@ -16,7 +16,7 @@ if [[ -n "$TARGETS" ]]; then
for input in $TARGETS; do
inputs+=("--update-input" "$input")
done
nix flake lock "${inputs[@]}" $commitArg --commit-lockfile-summary "$COMMIT_MSG"
nix flake lock "${inputs[@]}" ${commitArg:+"--commit-lock-file"} --commit-lockfile-summary "$COMMIT_MSG"
else
nix flake update $commitArg --commit-lockfile-summary "$COMMIT_MSG"
nix flake update ${commitArg:+"--commit-lock-file"} --commit-lockfile-summary "$COMMIT_MSG"
fi