Compare commits
7 commits
4643783331
...
5d2a201a6e
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d2a201a6e | |||
| df3eaccfd6 | |||
| 83c11117fe | |||
| 927f6f3d66 | |||
| ff51d7f571 | |||
| cd62f3f561 | |||
| a7ad1647aa |
4 changed files with 12 additions and 4 deletions
|
|
@ -87,11 +87,13 @@ jobs:
|
||||||
<details><summary>Show Apply</summary>
|
<details><summary>Show Apply</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
${{ steps.apply.outputs.stdout }}
|
APPLY_PLACEHOLDER
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
run: |
|
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")
|
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
||||||
|
|
||||||
existing_comment=$(curl -s \
|
existing_comment=$(curl -s \
|
||||||
|
|
|
||||||
|
|
@ -88,11 +88,13 @@ jobs:
|
||||||
<details><summary>Show Apply</summary>
|
<details><summary>Show Apply</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
${{ steps.apply.outputs.stdout }}
|
APPLY_PLACEHOLDER
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
run: |
|
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")
|
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
||||||
|
|
||||||
existing_comment=$(curl -s \
|
existing_comment=$(curl -s \
|
||||||
|
|
|
||||||
|
|
@ -74,11 +74,13 @@ jobs:
|
||||||
<details><summary>Show Plan</summary>
|
<details><summary>Show Plan</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
${{ steps.plan.outputs.stdout }}
|
PLAN_PLACEHOLDER
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
run: |
|
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")
|
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
||||||
|
|
||||||
existing_comment=$(curl -s \
|
existing_comment=$(curl -s \
|
||||||
|
|
|
||||||
|
|
@ -75,11 +75,13 @@ jobs:
|
||||||
<details><summary>Show Plan</summary>
|
<details><summary>Show Plan</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
${{ steps.plan.outputs.stdout }}
|
PLAN_PLACEHOLDER
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
run: |
|
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")
|
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
||||||
|
|
||||||
existing_comment=$(curl -s \
|
existing_comment=$(curl -s \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue