Trying another workaround
This commit is contained in:
@@ -18,9 +18,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"
|
||||||
|
token:
|
||||||
env:
|
description: "CI Token"
|
||||||
CI_TOKEN: "${{ secrets.CI_TOKEN }}"
|
required: false
|
||||||
|
default: "${{ secrets.CI_TOKEN }}"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@@ -34,7 +35,7 @@ runs:
|
|||||||
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/${{ gitea.repository_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}"
|
||||||
|
|
||||||
curl --user "MilaBot:${CI_TOKEN}" \
|
curl --user "MilaBot:${{ inputs.token }}" \
|
||||||
--upload-file "${{ inputs.customArchiveName }}.tar.gz" \
|
--upload-file "${{ inputs.customArchiveName }}.tar.gz" \
|
||||||
"${PKG_URL}" \
|
"${PKG_URL}" \
|
||||||
--verbose \
|
--verbose \
|
||||||
|
|||||||
Reference in New Issue
Block a user