From d2443352b048685614b38a6c7a9f9d5857ce66f4 Mon Sep 17 00:00:00 2001 From: gregoire kubler <gregoire.kubler@proton.me> Date: Fri, 22 Nov 2024 10:31:27 +0100 Subject: [PATCH] feat : better debug prints --- .gitlab/ci/download/select_jobs.gitlab-ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitlab/ci/download/select_jobs.gitlab-ci.yml b/.gitlab/ci/download/select_jobs.gitlab-ci.yml index 7c83a4f..dfda27b 100644 --- a/.gitlab/ci/download/select_jobs.gitlab-ci.yml +++ b/.gitlab/ci/download/select_jobs.gitlab-ci.yml @@ -350,13 +350,11 @@ Write-Host "Retrieving repo tags from $DEP_API_URL/repository/tags?per_page=100" $DEP_TAGS=$($(Invoke-RestMethod -Uri "$DEP_API_URL/repository/tags?per_page=100" -Method Get) | Sort-Object -Property commit.created_at -Descending) - Write-Host "DEP_TAGS = $DEP_TAGS" - + $DEP_TAGS | Select-Object name, @{Name="commit_creation_date"; Expression={$_.commit.created_at}} | Out-String 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" - $DEP_TAGS_BEFORE_DATE=$($DEP_TAGS | - Where-Object { $_.commit.created_at -le "$REPO_CURR_TAG_DATE"}) - Write-Host "Found $($DEP_TAGS_BEFORE_DATE.Count) tags pre-dating release $CI_COMMIT_TAG." + $DEP_TAGS_BEFORE_DATE=$($DEP_TAGS | Where-Object { $_.commit.created_at -le "$REPO_CURR_TAG_DATE"}) + Write-Host "Found $($DEP_TAGS_BEFORE_DATE.Count) tags for $DEP_NAME pre-dating release $CI_COMMIT_TAG." $DEP_TAGS_BEFORE_DATE | Select-Object name | Out-String if ( $($DEP_TAGS_BEFORE_DATE.Count) -ne 0) { -- GitLab