From 40301fa9e5b7e50913aa5205a4af943d3a8e3abf Mon Sep 17 00:00:00 2001 From: TrebledJ <39648915+TrebledJ@users.noreply.github.com> Date: Sun, 9 Jun 2024 17:09:50 +0800 Subject: [PATCH] chore(workflow): filter lines --- .github/workflows/pr.automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.automerge.yml b/.github/workflows/pr.automerge.yml index b5f91d7d4..b2cc8d115 100644 --- a/.github/workflows/pr.automerge.yml +++ b/.github/workflows/pr.automerge.yml @@ -70,7 +70,7 @@ jobs: run: | echo '## Diff Output' >> $GITHUB_STEP_SUMMARY echo '```diff' >> $GITHUB_STEP_SUMMARY - head -100 <.diff >> $GITHUB_STEP_SUMMARY + cat .diff | awk '$0 ~ /^[\+\-]/' | head -100 >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY exit 1