From 14e08a7d46278ea8e2198f764a214da0d1a31bc0 Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Thu, 3 Oct 2019 05:52:31 +0100 Subject: [PATCH] ci: force exit code 0 with semicolon https://unix.fandom.com/wiki/Force_exit_code_0 quote is necessary to escape the semicolon in yml --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e02d7414..dee5eafd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,7 +42,7 @@ deploy_job: # Push to mirror # Force exit code 0 - - ssh -T git@github.com || echo + - ssh -T git@github.com || ":" - git remote add mirror git@github.com:curbengh/urlhaus-filter.git - git push mirror master @@ -74,7 +74,7 @@ failed_job: - ssh -T git@gitlab.com - git remote set-url origin git@gitlab.com:curben/urlhaus-filter.git - git push origin master - - ssh -T git@github.com || echo + - ssh -T git@github.com || ":" - git remote add mirror git@github.com:curbengh/urlhaus-filter.git - git push mirror master