summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexander Niebuhr <alexander@nbhr.io> 2023-10-21 20:52:50 +0200
committerGravatar GitHub <noreply@github.com> 2023-10-21 13:52:50 -0500
commitd5dc5ce04acd19d9c9b7a29c2519408f6bdc3b83 (patch)
tree5bc09e3c9b3aaebf702e768ad87856f8e2e51eb8
parent144815c6ff295fe54eef3c641ad929e3c7b2b2fd (diff)
downloadastro-d5dc5ce04acd19d9c9b7a29c2519408f6bdc3b83.tar.gz
astro-d5dc5ce04acd19d9c9b7a29c2519408f6bdc3b83.tar.zst
astro-d5dc5ce04acd19d9c9b7a29c2519408f6bdc3b83.zip
fix: snapshot release workflow (#8884)
-rw-r--r--.github/workflows/snapshot-release.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml
index 34aa316aa..e1dbd8731 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