From c555092bbc71a449878f7f26a3795ef40ec84cc8 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Sun, 6 Oct 2024 22:57:49 +0000 Subject: [PATCH] ci: trigger master branch https://forum.gitlab.com/t/triggering-a-pipeline-on-another-branch-for-the-same-project/44458 --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 97fc101..6b205ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,10 +48,11 @@ test: deploy: stage: deploy - trigger: - project: curben/curben.gitlab.io - branch: master - strategy: depend + before_script: + - apk update && apk add curl + + script: + - curl -X POST --fail -F token=$TRIGGER_PAGES_TOKEN -F ref=master ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/trigger/pipeline rules: - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "microblog" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'