ci: use braces block for formatting in ci comment
This commit is contained in:
parent
1d90e0780a
commit
bd75e0a874
1 changed files with 12 additions and 10 deletions
22
.github/workflows/ci-comment.yml
vendored
22
.github/workflows/ci-comment.yml
vendored
|
|
@ -41,19 +41,21 @@ jobs:
|
|||
exit 0
|
||||
fi
|
||||
|
||||
echo "message<<EOF" >> $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<<EOF"
|
||||
echo "## CI Summary"
|
||||
|
||||
for file in $files; do
|
||||
echo $(cat $file)
|
||||
done
|
||||
|
||||
echo
|
||||
echo "[Full summary]($run_url) (scroll down)"
|
||||
echo "EOF"
|
||||
} >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set PR comment
|
||||
if: steps.summary.outputs.message
|
||||
|
|
|
|||
Loading…
Reference in a new issue