Commit 13dbf5f6 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : wrong url request to retrieve curr repo tag date

parent 818cc845
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@
        # CASE WHERE A COMMIT TAG IS CREATED
        } elseif ( "$CI_COMMIT_TAG" ) {
            Write-Host "Rretrieving the creation_date of the commit the tag has been created from $DEP_API_URL/repository/tags/$CI_COMMIT_TAG"
            $REPO_CURR_TAG_DATE=$($(Invoke-RestMethod -Uri "$DEP_API_URL/repository/tags/$CI_COMMIT_TAG" -Method Get).commit.created_at)
            $REPO_CURR_TAG_DATE=$($(Invoke-RestMethod -Uri "$API_URL/projects/$CI_PROJECT_ID/repository/tags/$CI_COMMIT_TAG" -Method Get).commit.created_at)
            Write-Host "REPO_CURR_TAG_DATE = $REPO_CURR_TAG_DATE"
            Write-Host "Looking for latest release in $DEP_NAME before $CI_COMMIT_TAG was released on project $CI_PROJECT_NAME."
            Write-Host "Retrieving repo tags from $DEP_API_URL/repository/tags?per_page=100"