fix: typo repository_owner -> package_owner

This commit is contained in:
Michael Sasser 2024-12-27 16:24:52 +01:00
parent e0c2fbb48c
commit e06390119f
Signed by: michael
GPG key ID: 5F653AC7631F5151

View file

@ -110,7 +110,7 @@ runs:
curl --version curl --version
echo '::endgroup::' echo '::endgroup::'
PACKAGE_URL='${{ steps.prepared.outputs.forge_url }}/api/packages/${{ steps.prepared.outputs.repository_owner }}/arch/${{ inputs.package_repository_name }}' PACKAGE_URL='${{ steps.prepared.outputs.forge_url }}/api/packages/${{ steps.prepared.outputs.package_owner }}/arch/${{ inputs.package_repository_name }}'
echo "PACKAGE_URL: ${PACKAGE_URL}" echo "PACKAGE_URL: ${PACKAGE_URL}"
echo '::group::Request' echo '::group::Request'
@ -142,8 +142,14 @@ runs:
exit 0 exit 0
elif ((HTTP_CODE >= 400 && HTTP_CODE <= 499)); then elif ((HTTP_CODE >= 400 && HTTP_CODE <= 499)); then
# Client Error # Client Error
if [[ "$HTTP_CODE" == 409 ]]; then if [[ "$HTTP_CODE" == 401 ]]; then
echo "::warning title=package already exists::The package with the same name, pkgver, pkgrel and architecture (${{ steps.prepared.outputs.package }}) already exists and was therefore not updated." echo "::error title=Unauthorized::The authentication credentials given to the action are insufficiant to push the package."
exit 1
elif [[ "$HTTP_CODE" == 403 ]]; then
echo "::error title=Forbidden::No authentication credentials where given to the action to push the package."
exit 1
elif [[ "$HTTP_CODE" == 409 ]]; then
echo "::warning title=Conflict::The package with the same name, pkgver, pkgrel and architecture (${{ steps.prepared.outputs.package }}) already exists and was therefore not updated."
exit 0 exit 0
fi fi
echo "::error title=Client Error::The server returned a client error with the HTTP code ${HTTP_CODE}." echo "::error title=Client Error::The server returned a client error with the HTTP code ${HTTP_CODE}."