Update cypress.yaml (#8804)

This commit is contained in:
Michael Telatynski 2022-06-09 14:52:06 +01:00 committed by GitHub
parent 4e1958d9fe
commit 3510f8efa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,8 @@ jobs:
# Only run Percy when it is demanded or on develop
- name: Disable Percy if not needed
if: |
github.event.workflow_run.event != 'pull_request' ||
contains(fromJSON(steps.prdetails.outputs.data).labels.*.name, 'X-Needs-Percy')
github.event.workflow_run.event == 'pull_request' &&
!contains(fromJSON(steps.prdetails.outputs.data).labels.*.name, 'X-Needs-Percy')
run: |
echo "PERCY_ENABLE=0" >> $GITHUB_ENV