Compare commits
1 commit
5d2a201a6e
...
4643783331
| Author | SHA1 | Date | |
|---|---|---|---|
| 4643783331 |
4 changed files with 4 additions and 12 deletions
|
|
@ -87,13 +87,11 @@ jobs:
|
||||||
<details><summary>Show Apply</summary>
|
<details><summary>Show Apply</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
APPLY_PLACEHOLDER
|
${{ steps.apply.outputs.stdout }}
|
||||||
```
|
```
|
||||||
|
|
||||||
</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,13 +88,11 @@ jobs:
|
||||||
<details><summary>Show Apply</summary>
|
<details><summary>Show Apply</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
APPLY_PLACEHOLDER
|
${{ steps.apply.outputs.stdout }}
|
||||||
```
|
```
|
||||||
|
|
||||||
</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,13 +74,11 @@ jobs:
|
||||||
<details><summary>Show Plan</summary>
|
<details><summary>Show Plan</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
PLAN_PLACEHOLDER
|
${{ steps.plan.outputs.stdout }}
|
||||||
```
|
```
|
||||||
|
|
||||||
</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,13 +75,11 @@ jobs:
|
||||||
<details><summary>Show Plan</summary>
|
<details><summary>Show Plan</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
PLAN_PLACEHOLDER
|
${{ steps.plan.outputs.stdout }}
|
||||||
```
|
```
|
||||||
|
|
||||||
</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