Adding owner input
This commit is contained in:
@@ -22,6 +22,10 @@ inputs:
|
|||||||
description: "Custom archive name, useful for multi-arch"
|
description: "Custom archive name, useful for multi-arch"
|
||||||
required: false
|
required: false
|
||||||
default: "package"
|
default: "package"
|
||||||
|
owner:
|
||||||
|
description: "The owner of the package"
|
||||||
|
default: "${{ gitea.repository_owner }}"
|
||||||
|
required: false
|
||||||
token:
|
token:
|
||||||
description: "CI Token"
|
description: "CI Token"
|
||||||
required: false
|
required: false
|
||||||
@@ -67,7 +71,7 @@ runs:
|
|||||||
continue-on-error: true # Ensures the job shows a warning instead of failing
|
continue-on-error: true # Ensures the job shows a warning instead of failing
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
PKG_URL="${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.appName }}/${{ inputs.version }}/${{ inputs.customArchiveName }}.tar.gz"
|
PKG_URL="${{ gitea.server_url }}/api/packages/${{ inputs.owner }}/generic/${{ inputs.appName }}/${{ inputs.version }}/${{ inputs.customArchiveName }}.tar.gz"
|
||||||
log_info "Sending package in $(yellow)${PKG_URL}"
|
log_info "Sending package in $(yellow)${PKG_URL}"
|
||||||
|
|
||||||
HTTP_RESPONSE=$(curl --user "MilaBot:${{ inputs.token }}" \
|
HTTP_RESPONSE=$(curl --user "MilaBot:${{ inputs.token }}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user