Skip to content

Commit a0adb2a

Browse files
committed
ci: make the deployment diff collapsible
1 parent 430e5db commit a0adb2a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/std.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,15 @@ jobs:
167167
GH_TOKEN: ${{ github.token }}
168168
run: |
169169
prNumber=$(cut -d/ -f1 <<<'${{ github.ref_name }}')
170-
gh pr comment "$prNumber" --body "$(sed -e '2i\\n```diff' -e '$a```' k8s-plan.diff)"
170+
gh pr comment "$prNumber" --body "$(
171+
echo '<details>'
172+
echo "<summary>$(head -n 1 k8s-plan.diff)</summary>"
173+
echo
174+
echo '```diff'
175+
tail -n +2 k8s-plan.diff
176+
echo '```'
177+
echo '</details>'
178+
)"
171179
172180
173181
# TODO: remove all hardcoded instances of `dev-preview` in the next iteration

0 commit comments

Comments
 (0)