From 5eaf6c221e6c13b89c7e85c8d65ca7cd793dda92 Mon Sep 17 00:00:00 2001 From: Onur Tirtir Date: Mon, 16 Oct 2023 14:20:55 +0300 Subject: [PATCH] Fix flaky test detection job (#7256) We were getting such errors in flaky-test detection job: ``` Unable to process file command 'output' successfully ``` Even though we don't seem to be writing multiple lines to $GITHUB_OUTPUT, this seems to be the right fix. https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings --- .github/workflows/build_and_test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 90a4b1432..5944c38db 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -439,7 +439,10 @@ jobs: else echo "Detected tests " $tests fi - echo tests="$tests" >> "$GITHUB_OUTPUT" + + echo 'tests<> $GITHUB_OUTPUT + echo "$tests" >> "$GITHUB_OUTPUT" + echo 'EOF' >> $GITHUB_OUTPUT test-flakyness: if: ${{ needs.test-flakyness-pre.outputs.tests != ''}} name: Test flakyness