From c9ae4161d467fa19e9d01950eac7c488806269a6 Mon Sep 17 00:00:00 2001 From: Bhavin Patel Date: Tue, 9 Jul 2024 12:21:09 -0700 Subject: [PATCH] varaibles --- .github/workflows/unit-testing.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index 7c244e0663..ea47b2855a 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -37,6 +37,8 @@ jobs: echo "The target branch for this PR is ${{ github.base_ref }}" # contentctl test --disable-tqdm --no-enable-integration-testing --post-test-behavior never_pause mode:changes --mode.target-branch ${{ github.base_ref }} output = $(echo "With Detection Testing Mode 'Changes', there were [0] detections found to test.") + detections=$(echo "$output" | grep -oP 'there were \[\K[0-9]+(?=\] detections found to test)') + echo "::set-output name=detections::$detections" echo "contentctl test - COMPLETED" continue-on-error: true