Skip to content

The open alternative to Salesforce, designed for AI.

Fix condition for preview apps (#11933)

Félix Malfait51f7f55b9d6d
diff --git a/.github/workflows/preview-env-dispatch.yaml b/.github/workflows/preview-env-dispatch.yaml
index 291df4cb6ae..ffa29591d93 100644
--- a/.github/workflows/preview-env-dispatch.yaml
+++ b/.github/workflows/preview-env-dispatch.yaml
@@ -23,7 +23,7 @@ jobs:
contents: write
actions: write
pull-requests: read
- if: contains(github.event.pull_request.labels.*.name, 'preview')
+ if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' || (github.event.action == 'labeled' && github.event.label.name == 'preview-app')
timeout-minutes: 5
runs-on: ubuntu-latest
steps: