fix fail_fast

This commit is contained in:
Matt Sturgeon 2025-05-27 17:46:39 +01:00
parent bf9084246a
commit 60438d8017
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -56,7 +56,6 @@ runs:
builds_json: ${{ steps.builds.outputs.builds }}
keep_going_flag: ${{ inputs.keepGoing && '--keep-going' || '' }}
abort_on_warn_flag: ${{ inputs.abortOnWarn && '--abort-on-warn' || '' }}
fail_fast: ${{ inputs.keepGoing && '' || true }}
shell: bash
run: |
ok=0
@ -71,6 +70,7 @@ runs:
if [ -n "$name" ]; then
echo "Building $name"
fi
echo "${attrs[*]}"
if nix build "${attrs[@]}" \
"$keep_going_flag" \
"$abort_on_warn_flag" \
@ -80,7 +80,7 @@ runs:
((ok++))
else
((error++))
if [ -n "$fail_fast" ]; then
if [ -z "$keep_going_flag" ]; then
exit 1
fi
fi