feat: Filter summary in all workflows
All checks were successful
Tofu Plan pve01.wheatley.in templates / tofu-plan-templates (pull_request) Successful in 27s
Tofu Plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 29s

This commit is contained in:
Peter 2026-04-07 10:09:36 +02:00
parent 927f6f3d66
commit 83c11117fe
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
3 changed files with 9 additions and 3 deletions

View file

@ -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 \