feature: add debug option
This commit is contained in:
parent
901abd15d0
commit
06defd306a
18
action.yml
18
action.yml
@ -18,6 +18,10 @@ inputs:
|
|||||||
description: "java store password"
|
description: "java store password"
|
||||||
required: false
|
required: false
|
||||||
default: "changeit"
|
default: "changeit"
|
||||||
|
debug:
|
||||||
|
description: "show debug information about certificate truststore content"
|
||||||
|
required: false
|
||||||
|
default: "false"
|
||||||
outputs:
|
outputs:
|
||||||
certificate-alias:
|
certificate-alias:
|
||||||
value: ${{ steps.generate-alias-name.outputs.alias-name }}
|
value: ${{ steps.generate-alias-name.outputs.alias-name }}
|
||||||
@ -59,4 +63,16 @@ runs:
|
|||||||
echo "${{ inputs.ca-cert }}" | keytool -import -noprompt -trustcacerts -alias ${{ steps.generate-alias-name.outputs.alias-name }} -keystore ${{ inputs.store-path }} -storepass ${{ inputs.store-password }};
|
echo "${{ inputs.ca-cert }}" | keytool -import -noprompt -trustcacerts -alias ${{ steps.generate-alias-name.outputs.alias-name }} -keystore ${{ inputs.store-path }} -storepass ${{ inputs.store-password }};
|
||||||
else
|
else
|
||||||
echo "Certificate ${{ steps.generate-alias-name.outputs.alias-name }} already contained in the truststore";
|
echo "Certificate ${{ steps.generate-alias-name.outputs.alias-name }} already contained in the truststore";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Show added ${{ steps.generate-alias-name.outputs.alias-name }} for debugging
|
||||||
|
if: ${{ inputs.debug == 'true' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
keytool -list -cacerts | grep antoine
|
||||||
|
|
||||||
|
- name: List cert for debugging
|
||||||
|
if: ${{ inputs.debug == 'true' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
keytool -list -cacerts
|
||||||
|
Loading…
Reference in New Issue
Block a user