diff --git a/publish/action.yml b/publish/action.yml index 78c080d..a0f3957 100644 --- a/publish/action.yml +++ b/publish/action.yml @@ -31,14 +31,14 @@ runs: id: upload shell: bash env: - GITHUB_REPOSITORY: ${{ inputs.repository }} + REPO_FULL_NAME: ${{ inputs.repository }} TARGET: ${{ inputs.target }} CHANNEL: ${{ inputs.channel }} run: | - org="${GITHUB_REPOSITORY%%/*}" - repo="${GITHUB_REPOSITORY##*/}" + org="${REPO_FULL_NAME%%/*}" + repo="${REPO_FULL_NAME##*/}" url="https://dl.packager.io/api/orgs/${org}/repos/${repo}/packages" - echo "${url}" + echo "Pushing to ${url}..." curl -u "${{ inputs.token }}" -i -X POST "${url}" \ -F "artefact=@${{ inputs.artefact }}" \ -F "targets[]=${TARGET/://}" \