From ce583dcd2244e03bdcf57b5f76c434e64c6068e0 Mon Sep 17 00:00:00 2001 From: Bill Randall Date: Mon, 29 Apr 2024 14:38:41 -0400 Subject: [PATCH] Try only running this job when the actual label added is the preview environment label (not if any label includes this text). This should ensure we do not run it more than we need --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index d99b93793..a54901235 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -6,7 +6,7 @@ on: jobs: deploy: - if: contains(github.event.pull_request.labels.*.name, 'Preview Environment') + if: contains(github.event.label.name, 'Preview Environment') runs-on: ubuntu-latest continue-on-error: true permissions: