Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(semantic_release): ignore subgroup on release github remote (#548)
### Correct Github remote errors when releasing from GitLab to GitHub repository. As we are switching from direct cloning of GitHub repository hierarchy to GitLab sub groups per startup, we can't use the `CI_PROJECT_PATH` anymore to guess the GitHub repo to push too has it contains the GitLab subgroup that doesn't exit on Github resulting on the "classic" error : ```sh Error: Command failed with exit code 128: git ls-remote --heads https://[secure]@github.com/SocialGouv/archifiltre/archifiltre-statistics.git remote: Not Found ``` The alternative could be using the `CI_PROJECT_ROOT_NAMESPACE` and `CI_PROJECT_TITLE` to reconstituate the GitHub flat repository hierarchy see https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
- Loading branch information