diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 8698f9b..2ae2bf8 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -68,4 +68,6 @@ jobs: echo "Uploading chart to Gitea registry..." echo "User: ${{ github.actor }}" echo "URL: https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts" - curl --fail -v --user "${{ github.actor }}:${{ secrets.PACKAGES_TOKEN }}" -X POST --upload-file vhaudiquet-fr-*.tgz "https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts" + # Trim any trailing newline from the token + TOKEN=$(echo -n "${{ secrets.PACKAGES_TOKEN }}" | tr -d '\n') + curl --fail -v --user "${{ github.actor }}:${TOKEN}" -X POST --upload-file vhaudiquet-fr-*.tgz "https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts"