fix: Revert "feat: Adds semantic-release dry-run for .releaserc changes"
What
This reverts the dry-run for semantic release that was added earlier. It unfortunately is not working in CI as well as it does locally.
There was a previous attempt (I am just now aware of) in !251 (closed) to get this work, some suggestions in the MR like:
semantic-release-dry-run:
before_script:
# Fetch branches to access the intended MR target branch
- git fetch origin +refs/heads/*:refs/remotes/origin/*
# Check out to the source branch of the MR
- git checkout $CI_COMMIT_REF_NAME
# Needed if the branch is already on the build machine
- git reset --hard origin/$CI_COMMIT_REF_NAME
script:
- semantic-release --no-ci --dry-run --branches $CI_COMMIT_REF_NAME
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
but testing this out we would need git push permissions (even when there is a dry-run)
[11:34:25 AM] [semantic-release] › ✘ The command "git push --dry-run --no-verify https://gitlab-ci-token:[secure]@gitlab.com/gitlab-com/gl-infra/data-access/durability/gitlab-backup-cli.git HEAD:jarv/test-dry-run" failed with the error message remote: You are not allowed to push code to this project.
Revert "feat: Adds semantic-release dry-run for .releaserc changes"
This reverts commit 592f1d06.
Why
Edited by John Jarvis