diff --git a/.github/workflows/smoketests.yml b/.github/workflows/smoketests.yml index 54837b2321d..2cbef283107 100644 --- a/.github/workflows/smoketests.yml +++ b/.github/workflows/smoketests.yml @@ -40,6 +40,7 @@ jobs: echo "preview_url=$(cat ./pr/PREVIEW_URL)" >> $GITHUB_OUTPUT echo "branch_name=$(cat ./pr/BRANCHNAME)" >> $GITHUB_OUTPUT echo "user_name=$(cat ./pr/USERNAME)" >> $GITHUB_OUTPUT + echo "draft=$(cat ./pr/DRAFT)" >> $GITHUB_OUTPUT - name: Checkout external repository with Cypress tests uses: actions/checkout@v4 @@ -48,7 +49,7 @@ jobs: - name: Cypress run # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action - if: "!contains(steps.pr_information.outputs.branch_name, 'quill')" + if: (!steps.pr_information.outputs.draft) uses: cypress-io/github-action@v6 with: # Records to Cypress Cloud @@ -71,7 +72,7 @@ jobs: - name: Set comments message id: set_msg - if: always() && !contains(steps.pr_information.outputs.branch_name, 'quill') + if: always() && (!steps.pr_information.outputs.draft) run: | # Using shell script to conditionally set the message if [[ "${{ job.status }}" == "success" ]]; then @@ -81,7 +82,7 @@ jobs: fi - name: Leave comment - if: always() && !contains(steps.pr_information.outputs.branch_name, 'quill') + if: always() && (!steps.pr_information.outputs.draft) uses: marocchino/sticky-pull-request-comment@v2 with: header: Smoke tests status update