Skip to content
Snippets Groups Projects
Commit c6e4841f authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Merge branch 'jarv/add-dry-run' into 'main'

feat: Adds semantic-release dry-run for .releaserc changes

See merge request gitlab-com/gl-infra/common-ci-tasks!921
parents 94f91651 592f1d06
No related branches found
No related tags found
No related merge requests found
Pipeline #24959963 failed
Loading
Loading
@@ -98,6 +98,28 @@ semantic_release_check:
changes:
- .releaserc.json
 
semantic_release_dry_run:
stage: $[[ inputs.validate_stage ]]
needs: []
image:
name: ${CI_REGISTRY}/gitlab-com/gl-infra/common-ci-tasks-images/semantic-release:latest
entrypoint: [""]
variables:
GITLAB_URL: $CI_SERVER_URL
script:
- semantic-release --dry-run --branches $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
after_script: |
cat <<-EOD
----------------------------------------------------------
Need help? Documentation on the semantic_release CI job can be found at:
https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/semantic-release.md
EOD
rules:
# Don't run when the pipeline was triggered by a schedule
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes:
- .releaserc.json
include:
- local: 'internal/semantic-release/vault.yml'
rules:
Loading
Loading
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