From 3306048a1e23479be084b5e755699296c67ffa0e Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Thu, 4 May 2023 15:48:09 +0530 Subject: [PATCH] allow pushToPrebuilt only when there is a tag. --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ab615176..3b80f6cb9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -138,7 +138,10 @@ ktlintRelease: pushToPrebuilt: stage: publish needs: ["buildRelease"] - when: manual + rules: + - if: '$CI_COMMIT_TAG !~ "/^$/"' + when: manual + - when: never variables: NEW_APK_PATH: "app/build/outputs/apk/release/" before_script: -- GitLab