From d5dc5ce04acd19d9c9b7a29c2519408f6bdc3b83 Mon Sep 17 00:00:00 2001 From: Alexander Niebuhr Date: Sat, 21 Oct 2023 20:52:50 +0200 Subject: [PATCH] fix: snapshot release workflow (#8884) --- .github/workflows/snapshot-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index 34aa316aa2..e1dbd87316 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -17,7 +17,7 @@ env: jobs: snapshot-release: name: Create a snapshot release of a pull request - if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && contains(fromJSON('["!preview", "/preview", "!snapshot", "/snapshot"]'), github.event.comment.body) }} + if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && (contains(github.event.comment.body, '!preview') || contains(github.event.comment.body, '/preview') || contains(github.event.comment.body, '!snapshot') || contains(github.event.comment.body, '/snapshot')) }} runs-on: ubuntu-latest permissions: contents: read