From 7c98b3b57714b4a242e5ea962386922a04614885 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Tue, 10 Mar 2026 07:56:26 +0300 Subject: Prevent accidental GitLab CI releases using 'when' --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7352eeb..8e36b39 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,6 +42,8 @@ release: # Only run on tags starting with "v". rules: - if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/' + when: on_success + - when: never script: # Install system linkers for musl & ARM64. - apt-get update -- cgit v1.2.3-70-g09d2