Merge pull request 'chore: Only use plan summary in comment' (#14) from pgi-only-comment-summary into main
Reviewed-on: #14
This commit is contained in:
commit
df3eaccfd6
4 changed files with 12 additions and 4 deletions
|
|
@ -87,11 +87,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 \
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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 }}" | grep -vE '^\s*(module\.|data\.|resource\.).+: (Reading\.\.\.|Read complete after|Refreshing state)' | 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 \
|
||||
|
|
|
|||
|
|
@ -75,11 +75,13 @@ jobs:
|
|||
<details><summary>Show Plan</summary>
|
||||
|
||||
```
|
||||
${{ steps.plan.outputs.stdout }}
|
||||
PLAN_PLACEHOLDER
|
||||
```
|
||||
|
||||
</details>
|
||||
run: |
|
||||
filtered_plan=$(echo "${{ steps.plan.outputs.stdout }}" | grep -vE '^\s*(module\.|data\.|resource\.).+: (Reading\.\.\.|Read complete after|Refreshing state)' | 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