From b53594b5ddc86bcc806a385e282fd6b58e442ae7 Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Thu, 30 May 2024 18:11:23 +0000 Subject: [PATCH] fix --- publish/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/publish/action.yml b/publish/action.yml index 40309e4..84b3820 100644 --- a/publish/action.yml +++ b/publish/action.yml @@ -18,6 +18,10 @@ inputs: token: description: 'Token to use for authentication' required: true + force: + description: 'Publish even if the artefact already exists, and auto-create the channel if it does not exist' + required: false + default: "true" outputs: id: @@ -42,4 +46,5 @@ runs: curl --fail-with-body -u "${{ inputs.token }}" -i -X POST "${url}" \ -F "artefact=@${{ inputs.artefact }}" \ -F "targets[]=${TARGET/://}" \ - -F "channels[]=$CHANNEL" \ No newline at end of file + -F "channels[]=$CHANNEL" + -F force=${{ inputs.force }} \ No newline at end of file