From 0d3349179e73f1d5bf480d2669d5e75176b0fec4 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 27 Aug 2024 13:23:52 -0600 Subject: [PATCH] try this --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4a76f8395..182f38e903 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,9 +32,16 @@ jobs: id: get_all_tests run: | # Run the script and capture its output + echo "We are about to get the output" output=$(./scripts/test.sh) + echo "We just got the output" # Output the result in a way that GitHub Actions can read + echo "We are about to put the output into the output" echo "::set-output name=all_tests::$output" + echo "We have set the output. Here it is" + echo $ouput + echo "Here it is differently" + echo ${{steps.get_all_tests.output.all_tests}} - name: Print the captured output run: echo "${{ steps.get_all_tests.outputs.all_tests }}" debug-generate-tests: @@ -107,6 +114,8 @@ jobs: EXAMPLE_DIRECTORIES="${EXAMPLE_DIRECTORIES//$'\n'/'%0A'}" EXAMPLE_DIRECTORIES="${EXAMPLE_DIRECTORIES//$'\r'/'%0D'}" echo "::set-output name=example_directories::$EXAMPLE_DIRECTORIES" + - name: Print the captured output + run: echo "${{ steps.example_directories.outputs.example_directories }}" - id: should_run_tests run: | BRANCH_NAME="${{ github.head_ref }}"