Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
ci: use braces block for formatting in ci comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nbolton committed Sep 23, 2024
1 parent 1d90e07 commit bd75e0a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/ci-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd75e0a

Please sign in to comment.