Allow to mark the published github release as latest (#135)
* Allow to mark the published github release as latest Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
@@ -25,6 +25,10 @@ inputs:
|
||||
skip_packaging:
|
||||
description: "skip the packaging option (do your custom packaging before running this action"
|
||||
required: false
|
||||
mark_as_latest:
|
||||
description: Mark the created GitHub release as 'latest'
|
||||
required: false
|
||||
default: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -61,5 +65,9 @@ runs:
|
||||
args+=(--skip-packaging "${{ inputs.skip_packaging }}")
|
||||
fi
|
||||
|
||||
if [[ -n "${{ inputs.mark_as_latest }}" ]]; then
|
||||
args+=(--mark-as-latest "${{ inputs.mark_as_latest }}")
|
||||
fi
|
||||
|
||||
"$GITHUB_ACTION_PATH/cr.sh" "${args[@]}"
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user