Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a0ec97a1 authored by PETIT Manuel's avatar PETIT Manuel
Browse files

Add fallback tag logic for release CI job

In release pipelines, assign a dummy tag if CI_COMMIT_TAG is undefined : to test job.
parent a5559f49
No related branches found
No related tags found
No related merge requests found
Pipeline #1097374 failed
...@@ -114,6 +114,12 @@ create_release: ...@@ -114,6 +114,12 @@ create_release:
- chmod +x /usr/local/bin/release-cli - chmod +x /usr/local/bin/release-cli
script: script:
- echo "Creating release and attaching tutorials.zip..." - echo "Creating release and attaching tutorials.zip..."
- - |
- # Set a dummy tag if CI_COMMIT_TAG is not defined
- if [ -z "$CI_COMMIT_TAG" ]; then
- export CI_COMMIT_TAG="test-dummy-tag"
- fi
- echo "Using tag: $CI_COMMIT_TAG"
rules: rules:
- if: '$CI_COMMIT_TAG' # Run only on tag pipelines, e.g., for release tags - if: '$CI_COMMIT_TAG' # Run only on tag pipelines, e.g., for release tags
when: always when: always
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment