Commit da034df8 authored by Bertrand Souville's avatar Bertrand Souville
Browse files

Ensure that no previous content will be downloaded for 5.3.1-final tag

parent 78862b5a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,9 +34,9 @@ pages:
  dependencies:
    - Validate OpenAPIs
  script:
    # Get the previous GitLab Pages content
    # Get the previous GitLab Pages content (skip for -final tags)
    - set +e
    - curl --fail "$CI_PAGES_URL/content.zip" -o "content.zip"
    - if [[ ! "$CI_COMMIT_TAG" =~ -final ]]; then curl --fail "$CI_PAGES_URL/content.zip" -o "content.zip"; fi
    - if [ -e "content.zip" ]; then unzip "content.zip"; rm "content.zip"; fi
    - set -e
    # Add/update content