From 3698c5868c6c0d66b4b2c1d49ac8a4a2eb7eeeb0 Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Mon, 15 Apr 2024 07:11:16 +0200 Subject: [PATCH] CI: Trigger the draft-release job only on tags --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c4fee037a2..15c2689099c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -954,7 +954,7 @@ jobs: create-release: name: Create draft release and upload artifacts runs-on: ubuntu-22.04 - if: github.event_name == 'push' && (contains(github.ref, 'release-') || github.ref == 'refs/heads/stable') + if: startsWith(github.ref, 'refs/tags/v') needs: [ build-and-test,