- Issue created by @jonathan1055
- 🇬🇧United Kingdom jonathan1055
jonathan1055 → changed the visibility of the branch main to hidden.
- 🇬🇧United Kingdom jonathan1055
The checking/debug in composer log shows:
$ BR=d7-basic $ if [[ $BR =~ ^(d7-basic|d7-composer|d9-basic|d10-plus)$ ]]; then echo "BR $BR matches"; fi BR d7-basic matches $ BR=other-d7-basic $ if [[ $BR =~ ^(d7-basic|d7-composer|d9-basic|d10-plus)$ ]]; then echo "BR $BR matches"; else echo "BR $BR does not match"; fi BR other-d7-basic does not match $ BR=d7-basic-more $ if [[ $BR =~ ^(d7-basic|d7-composer|d9-basic|d10-plus)$ ]]; then echo "BR $BR matches"; else echo "BR $BR does not match"; fi BR d7-basic-more does not match
So I think the actual rule should work
if: $CI_COMMIT_BRANCH =~ /^(d7-basic|d7-composer|d9-basic|d10-plus)$/ && $CI_PROJECT_ROOT_NAMESPACE == "project"
But we cannot be sure until this is merged. That has to wait until the workflow commit in ✨ Change workflow: into a re-usable reference that can be extended Active has reached 'default-ref'. These downstream projects cannot have a fixed ref 'main', otherwise they won't be testing the upstream MR branch.
- 🇬🇧United Kingdom jonathan1055
I am going to merge this, just onto the d7-basic branch for now, so we can verify that it works as intended. Then I can cherry-pick to the other branches when we know.
-
jonathan1055 →
committed d2d05cd8 on d7-basic
Issue #3504332 by jonathan1055: Extend .default-workflow to trigger...
-
jonathan1055 →
committed d2d05cd8 on d7-basic
-
jonathan1055 →
committed 4d53cc30 on d7-basic
Issue #3504332 by jonathan1055: Push a new file to test the workflow
-
jonathan1055 →
committed 4d53cc30 on d7-basic
- 🇬🇧United Kingdom jonathan1055
That worked, the second push triggered a pipeline as required.
https://git.drupalcode.org/project/gitlab_templates_downstream/-/pipelin... -
jonathan1055 →
committed 9d8ee0e3 on d7-composer
Issue #3504332 by jonathan1055: Extend .default-workflow to trigger...
-
jonathan1055 →
committed 9d8ee0e3 on d7-composer
-
jonathan1055 →
committed 761b3788 on d9-basic
Issue #3504332 by jonathan1055: Extend .default-workflow to trigger...
-
jonathan1055 →
committed 761b3788 on d9-basic
-
jonathan1055 →
committed f4e008bc on d10-plus
Issue #3504332 by jonathan1055: Extend .default-workflow to trigger...
-
jonathan1055 →
committed f4e008bc on d10-plus
- 🇬🇧United Kingdom jonathan1055
Cherry-picked and pushed to the other three branches. Pipelines triggered on all of them, see attached.
-
jonathan1055 →
committed 4b456e20 on d10-plus
Issue #3504332 by jonathan1055: Push a new file to test the workflow
-
jonathan1055 →
committed 4b456e20 on d10-plus
-
jonathan1055 →
committed e9e7650e on d9-basic
Issue #3504332 by jonathan1055: Push a new file to test the workflow
-
jonathan1055 →
committed e9e7650e on d9-basic
-
jonathan1055 →
committed 7e9451cc on d7-composer
Issue #3504332 by jonathan1055: Push a new file to test the workflow
-
jonathan1055 →
committed 7e9451cc on d7-composer
Automatically closed - issue fixed for 2 weeks with no activity.