Skip to content

Trying to run a dry-run in my Gitlab testing stage #196

@adrian-salas

Description

@adrian-salas

Hello !

I'm writing a gitlab template i can provide to the developers i which I added a testing stage for semantic-release.

I'm currently using the following: - semantic-release --provider gitlab --dry --allow-no-changes
This job is run along my linters, so when a merge request is created, the job will be run.

However, the dry-run crashes with the following:

Executing "step_script" stage of the job script 00:02
$ semantic-release --provider gitlab --dry --allow-no-changes
[go-semantic-release]: version: 2.31.0
[go-semantic-release]: trying to prefetch plugins...
[go-semantic-release]: all plugins were prefetched!
[go-semantic-release]: ci-condition plugin: GitLab CI@1.11.0
[go-semantic-release]: provider plugin: GitLab@1.17.0
[go-semantic-release]: getting default branch...
[go-semantic-release]: found default branch: main
[go-semantic-release]: repo is private
[go-semantic-release]: current branch not found
[go-semantic-release]: stopping plugins...
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: command terminated with exit code 1

I tried a before script in which i checkout the current branch but i can't see any changes on the error.

Am I missing something ?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions