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 required: false
default: ${{ github.token }} default: ${{ github.token }}
commit-with-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 required: false
default: false default: ''
commit-msg: commit-msg:
description: 'The message provided with the commit' description: 'The message provided with the commit'
required: false required: false

View File

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