From bd75e0a87439db7e4f37fa114c5222c991afad66 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 23 Sep 2024 01:43:07 +0100 Subject: [PATCH] ci: use braces block for formatting in ci comment --- .github/workflows/ci-comment.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-comment.yml b/.github/workflows/ci-comment.yml index 480bb5bc1..99ebc762e 100644 --- a/.github/workflows/ci-comment.yml +++ b/.github/workflows/ci-comment.yml @@ -41,19 +41,21 @@ jobs: exit 0 fi - echo "message<> $GITHUB_OUTPUT - echo "## CI Summary" >> $GITHUB_OUTPUT - - for file in $files; do - echo $(cat $file) >> $GITHUB_OUTPUT - done - repo_url="${{ github.server_url }}/${{ github.repository }}" run_url="$repo_url/actions/runs/${{ github.event.workflow_run.id }}" - echo > $GITHUB_OUTPUT - echo "[Full summary]($run_url) (scroll down)" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT + { + echo "message<> $GITHUB_OUTPUT - name: Set PR comment if: steps.summary.outputs.message