From 4c35be5ed4dbcc4cf8f5c3f6ab124cf6d1a2f4b3 Mon Sep 17 00:00:00 2001 From: markodonnell-deriv <144238191+markodonnell-deriv@users.noreply.github.com> Date: Fri, 1 Mar 2024 09:46:14 +0000 Subject: [PATCH] Update smoketests.yml - Mod to draft param (#7217) * Update smoketests.yml - Mod to draft param The draft param wasn't being interpretted correctly. * Update smoketests.yml --- .github/workflows/smoketests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/smoketests.yml b/.github/workflows/smoketests.yml index 2cbef283107..7a1cdafd44e 100644 --- a/.github/workflows/smoketests.yml +++ b/.github/workflows/smoketests.yml @@ -41,6 +41,10 @@ jobs: echo "branch_name=$(cat ./pr/BRANCHNAME)" >> $GITHUB_OUTPUT echo "user_name=$(cat ./pr/USERNAME)" >> $GITHUB_OUTPUT echo "draft=$(cat ./pr/DRAFT)" >> $GITHUB_OUTPUT + + - name: pr_info_debug 🔍 + run: | + echo "PR Draft value ={{ $steps.pr_information.outputs.draft }}--" - name: Checkout external repository with Cypress tests uses: actions/checkout@v4 @@ -49,7 +53,7 @@ jobs: - name: Cypress run # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action - if: (!steps.pr_information.outputs.draft) + if: "contains(steps.pr_information.outputs.draft, 'false')" uses: cypress-io/github-action@v6 with: # Records to Cypress Cloud @@ -72,7 +76,7 @@ jobs: - name: Set comments message id: set_msg - if: always() && (!steps.pr_information.outputs.draft) + if: always() && contains(steps.pr_information.outputs.draft, 'false') run: | # Using shell script to conditionally set the message if [[ "${{ job.status }}" == "success" ]]; then @@ -82,7 +86,7 @@ jobs: fi - name: Leave comment - if: always() && (!steps.pr_information.outputs.draft) + if: always() && contains(steps.pr_information.outputs.draft, 'false') uses: marocchino/sticky-pull-request-comment@v2 with: header: Smoke tests status update