From e2e2400fe88be021d393cfc8460c79df7220e0db Mon Sep 17 00:00:00 2001
From: Daniel K Lyons <dlyons@nrao.edu>
Date: Wed, 24 May 2023 09:55:10 -0600
Subject: [PATCH] Limit this rule from running unless we're on a tag or merging
 into main

---
 .gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b9bd5da3..8cc73c24b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -327,6 +327,9 @@ push web:
 push core_sampler:
   image: python:latest
   stage: push
+  rules:
+    - if: $CI_COMMIT_TAG
+    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
   before_script:
     - cd apps/cli/utilities/core_sampler
     - pip install flit
-- 
GitLab