feat: add short-on-error input

This commit is contained in:
rlespinasse
2022-03-18 20:39:45 +01:00
committed by Romain Lespinasse
parent 512ffd9023
commit ef0d40cdf6
4 changed files with 90 additions and 17 deletions

View File

@@ -12,6 +12,10 @@ inputs:
description: "Don't fail the action if the git revision isn't valid"
default: "false"
required: false
short-on-error:
description: "Still short it if the git revision isn't valid"
default: "false"
required: false
prefix:
description: "Value to prepend to each generated variable"
default: ""
@@ -32,5 +36,6 @@ runs:
INPUT_NAME: ${{ inputs.name }}
INPUT_REVISION: ${{ inputs.revision }}
INPUT_CONTINUE_ON_ERROR: ${{ inputs.continue-on-error }}
INPUT_SHORT_ON_ERROR: ${{ inputs.short-on-error }}
INPUT_PREFIX: ${{ inputs.prefix }}
INPUT_LENGTH: ${{ inputs.length }}