chore: Only use plan summary in comment #14
1 changed files with 3 additions and 1 deletions
|
|
@ -74,11 +74,13 @@ jobs:
|
|||
<details><summary>Show Plan</summary>
|
||||
|
||||
```
|
||||
${{ steps.plan.outputs.stdout }}
|
||||
PLAN_PLACEHOLDER
|
||||
```
|
||||
|
||||
</details>
|
||||
run: |
|
||||
filtered_plan=$(echo "${{ steps.plan.outputs.stdout }}" | awk '/Refreshing state/{found=0} /^$/{if(!found)print; next} {if(found)print} /Refreshing state/{found=1}' | sed '/./,$!d')
|
||||
COMMENT_BODY="${COMMENT_BODY//'PLAN_PLACEHOLDER'/$filtered_plan}"
|
||||
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