diff --git a/.github/actions/run-benchmarks/action.yml b/.github/actions/run-benchmarks/action.yml index a7b5413554..ca9638fe5d 100644 --- a/.github/actions/run-benchmarks/action.yml +++ b/.github/actions/run-benchmarks/action.yml @@ -66,7 +66,7 @@ runs: cd .. if [[ -z $EXISTING_FILE ]]; then mkdir -p ${{ inputs.repo-for-saving-data }}/$OUTPUT_DIR - echo "The collected benchmark results will be saved to $OUTPUT_FILE." + echo "The collected benchmark results will be saved to $OUTPUT_DIR/$OUTPUT_FILENAME." echo "::set-output name=output-file::$OUTPUT_DIR/$OUTPUT_FILENAME" else echo "The benchmark will not be run because results for that commit are already saved at $EXISTING_FILE." diff --git a/.github/actions/visualize-save-upload/action.yml b/.github/actions/visualize-save-upload/action.yml index 8eb4b7c945..51a6a56709 100644 --- a/.github/actions/visualize-save-upload/action.yml +++ b/.github/actions/visualize-save-upload/action.yml @@ -59,9 +59,11 @@ runs: run: | echo $(ls) if [ -f errors.txt ]; then - ERROR_MESSAGES=$(cat errors.txt) - echo "The benchmark runner reported the following errors:\n$ERROR_MESSAGES" - echo "::set-output name=error-messages::Error messages: $ERROR_MESSAGES" + ERROR_MESSAGES="The benchmark runner reported the following errors:"$'\n'"$(cat errors.txt)" + echo "$ERROR_MESSAGES" + echo 'ERROR_MESSAGES<> $GITHUB_ENV + echo "$ERROR_MESSAGES" >> $GITHUB_ENV + echo 'EOF' >> $GITHUB_ENV fi shell: bash @@ -70,7 +72,7 @@ runs: with: message: | Running benchmarks from commit ${{ github.sha }}... - ${{ steps.compute-error-messages.outputs.error-messages }} + ${{ env.ERROR_MESSAGES }} Results so far: @@ -85,7 +87,7 @@ runs: with: message: | :heavy_check_mark: Finished running benchmarks from ${{ github.sha }}. - ${{ steps.compute-error-messages.outputs.error-messages }} + ${{ env.ERROR_MESSAGES }} ![Visualization of the benchmark results.](https://raw.githubusercontent.com/lf-lang/${{ inputs.repo-for-saving-data }}/saved-benchmark-results/${{ steps.figure.outputs.output-file }}) comment_includes: ${{ github.sha }}