From 54f9c4282620fdac5765cf993fa7f8e7091a197c Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Wed, 1 Jan 2025 00:40:25 +0000 Subject: [PATCH] fix(ci): fix manual release trigger --- .gitea/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 76c6b7d..289a4e6 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -15,9 +15,9 @@ jobs: echo "Comment: ${{ gitea.event.comment.body }}" echo "User: ${{ gitea.event.comment.user.login }}" - - name: Allow workflow - if: contains(gitea.event.issue.number, '436')) && contains(gitea.event.comment.body, '/trigger-release') && contains(gitea.event.comment.user.login, 'luke') - run: exit 0 + - name: Stop workflow if required conditions are not met + if: !contains(gitea.event.issue.number, '436') || !contains(gitea.event.comment.body, '/trigger-release') || !contains(gitea.event.comment.user.login, 'luke') + run: exit 1 test: name: Unit Test