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:
Simon L
2023-03-24 11:56:51 +01:00
committed by GitHub
parent be16258da8
commit 31bbcdca8b
3 changed files with 20 additions and 0 deletions
+8
View File
@@ -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