fix(ci): fix manual release trigger

This commit is contained in:
Luke Tainton 2025-01-01 00:40:25 +00:00
parent 377e1671c2
commit 54f9c42826
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -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