CI feedback
This commit is contained in:
parent
8e2a4ea6d8
commit
caae4dc74a
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue