Skip to content
Snippets Groups Projects
Verified Commit 592f1d06 authored by John Jarvis's avatar John Jarvis
Browse files

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

When modifying the .releaserc file it would be nice to see a dry-run
for what will happen when the branch is override.

Brought up in https://gitlab.com/gitlab-com/gl-infra/data-access/durability/gitlab-backup-cli/-/merge_requests/15#note_2356952141
parent 94f91651
No related branches found
No related tags found
No related merge requests found
Pipeline #24959943 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