From b96150cc3bd135e05ad62cb577af488f8f73d68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@inrae.fr> Date: Fri, 16 Jul 2021 17:19:29 +0200 Subject: [PATCH] CI: autre correction du job packagist. --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f6dda1a..5e51ca2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,12 +38,13 @@ packagist: - job: test artifacts: false image: appropriate/curl + variables: + GIT_STRATEGY: none rules: - if: $CI_COMMIT_TAG - if: $CI_COMMIT_BRANCH interruptible: false script: - - | - curl -fsSL -H"Content-Type: application/json" \ - -d''{"repository":{"url":"''$CI_REPOSITORY_URL''"}}'' \ - "https://packagist.org/api/update-package?username=$PACKAGIST_USERNAME&apiToken=$PACKAGIST_TOKEN" + - 'curl -fsSL -H"Content-Type: application/json" + -d''{"repository":{"url":"''$CI_PROJECT_URL''.git"}}'' + "https://packagist.org/api/update-package?username=$PACKAGIST_USERNAME&apiToken=$PACKAGIST_TOKEN"' -- GitLab