From 88492ec46cc3dbd71e88978e11073ca80af56f76 Mon Sep 17 00:00:00 2001
From: ehartley <ehartley@c-path.org>
Date: Fri, 2 Sep 2022 20:08:08 +0000
Subject: [PATCH] Update .gitlab-ci.yml file - testing how to control which
 repo jobs run in.

---
 .gitlab-ci.yml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 165ae4f..be79f40 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,6 +7,13 @@ stages:
   - upload
   - release
 
+test:
+  stage: test
+  script:
+    - echo "Project URL is ${CI_PROJECT_URL}"
+  rules:
+    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
+
 pages:
   stage: deploy
   image: python:3.8-buster
@@ -18,7 +25,7 @@ pages:
     - public
   rules:
     # Do NOT run the pipeline in the gitlab.c-path.org repo (the source repo).
-    - if: $CI_PROJECT_URL == "https://gitlab.c-path.org/c-pathontology/critical-path-ontology/"
+    - if: $CI_RUNNER_SHORT_TOKEN == "AxXzjE-S"
       when: never
     # Run the pipeline in the gitlab.com mirror repo when a change is made to the main (default) branch.
     - if: $CI_PROJECT_URL == "https://gitlab.com/c-pathontology/critical-path-ontology/"
-- 
GitLab