Skip to content

Commit

Permalink
Fix OpenAPI workflow summary (#11780)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed May 21, 2024
1 parent 70e85cb commit 8037382
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
# Read and fix markdown
body=$(cat openapi-changes.md)
# Write to workflow summary
echo $body >> $GITHUB_STEP_SUMMARY
echo "$body" >> $GITHUB_STEP_SUMMARY
# Set ApiChanged var
if [ "$body" != '' ]; then
echo "ApiChanged=1" >> "$GITHUB_OUTPUT"
Expand All @@ -115,7 +115,9 @@ jobs:
echo '<!--openapi-diff-workflow-comment-->' > openapi-changes-reply.md
echo "<details>" >> openapi-changes-reply.md
echo "<summary>Changes in OpenAPI specification found. Expand to see details.</summary>" >> openapi-changes-reply.md
echo "" >> openapi-changes-reply.md
echo "$body" >> openapi-changes-reply.md
echo "" >> openapi-changes-reply.md
echo "</details>" >> openapi-changes-reply.md
- name: Find difference comment
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0
Expand Down

0 comments on commit 8037382

Please sign in to comment.