feat: Filter summary in all workflows
This commit is contained in:
parent
927f6f3d66
commit
83c11117fe
3 changed files with 9 additions and 3 deletions
|
|
@ -88,11 +88,13 @@ jobs:
|
|||
<details><summary>Show Apply</summary>
|
||||
|
||||
```
|
||||
${{ steps.apply.outputs.stdout }}
|
||||
APPLY_PLACEHOLDER
|
||||
```
|
||||
|
||||
</details>
|
||||
run: |
|
||||
filtered_apply=$(echo "${{ steps.apply.outputs.stdout }}" | grep -vE '^\s*(module\.|data\.|resource\.).+: (Reading\.\.\.|Read complete after|Refreshing state)' | sed '/./,$!d')
|
||||
COMMENT_BODY="${COMMENT_BODY//'APPLY_PLACEHOLDER'/$filtered_apply}"
|
||||
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
||||
|
||||
existing_comment=$(curl -s \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue