From e39637d227603baf4c37e470a96372eb84fe1186 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Wed, 1 Jan 2025 00:42:50 +0000 Subject: [PATCH] fix(ci): fix manual release trigger You must always use the `${{ }}` expression syntax when negating (`!`). https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/using-conditions-to-control-job-execution --- .gitea/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 289a4e6..83698c9 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -16,7 +16,7 @@ jobs: echo "User: ${{ gitea.event.comment.user.login }}" - 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') + 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: