Skip to content

Commit

Permalink
f search
Browse files Browse the repository at this point in the history
  • Loading branch information
robzr committed Mar 5, 2024
1 parent bd1d858 commit be78e15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions keys/search/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,13 @@ runs:
error_message="Querying the keyserver returned an HTTP response code ${response_code}, which means the search had no results.
$(cat "$tmp_curl_out")"
echo "::error title=gpg/keys/search - No search result found.::${error_message//$'\n'/'%0A'}"
echo "$error_message"
echo "::${{ inputs.fail-on-not-found == 'true' && 'error' || 'warning' }} title=gpg/keys/search - No search result found.::${error_message//$'\n'/'%0A'}"
exit ${{ inputs.fail-on-not-found == 'true' && '1' || '0' }}
else
error_message="Querying the keyserver returned an HTTP response code ${response_code}, which means there was an error.
$(cat "$tmp_curl_out")"
echo "::error title=gpg/keys/search - Keyserver returned error.::${error_message//$'\n'/'%0A'}"
echo "$error_message"
exit 1
fi
fi
Expand Down

0 comments on commit be78e15

Please sign in to comment.