diff --git a/.forgejo/workflows/tofu-apply-k8s-wheatley.yaml b/.forgejo/workflows/tofu-apply-k8s-wheatley.yaml index 199cfff..3ececfc 100644 --- a/.forgejo/workflows/tofu-apply-k8s-wheatley.yaml +++ b/.forgejo/workflows/tofu-apply-k8s-wheatley.yaml @@ -87,13 +87,11 @@ jobs:
Show Apply ``` - APPLY_PLACEHOLDER + ${{ steps.apply.outputs.stdout }} ```
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 \ diff --git a/.forgejo/workflows/tofu-apply-templates.yaml b/.forgejo/workflows/tofu-apply-templates.yaml index b199f64..fb94da2 100644 --- a/.forgejo/workflows/tofu-apply-templates.yaml +++ b/.forgejo/workflows/tofu-apply-templates.yaml @@ -88,13 +88,11 @@ jobs:
Show Apply ``` - APPLY_PLACEHOLDER + ${{ steps.apply.outputs.stdout }} ```
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 \ diff --git a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml index 24f5731..fd629b8 100644 --- a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml +++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml @@ -74,13 +74,11 @@ jobs:
Show Plan ``` - PLAN_PLACEHOLDER + ${{ steps.plan.outputs.stdout }} ```
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 \ diff --git a/.forgejo/workflows/tofu-plan-templates.yaml b/.forgejo/workflows/tofu-plan-templates.yaml index 2bab873..4ac2aeb 100644 --- a/.forgejo/workflows/tofu-plan-templates.yaml +++ b/.forgejo/workflows/tofu-plan-templates.yaml @@ -75,13 +75,11 @@ jobs:
Show Plan ``` - PLAN_PLACEHOLDER + ${{ steps.plan.outputs.stdout }} ```
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 \