Skip to content

Commit

Permalink
Try only running this job when the actual label added is the preview …
Browse files Browse the repository at this point in the history
…environment label (not if any label includes this text). This should ensure we do not run it more than we need
  • Loading branch information
wrandall22 committed Apr 29, 2024
1 parent cf7dfca commit ce583dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ce583dc

Please sign in to comment.