chore: Add tofu workflows #1
1 changed files with 21 additions and 21 deletions
|
|
@ -74,37 +74,37 @@ jobs:
|
|||
[ "$1" = "success" ] && echo "✅" || echo "❌"
|
||||
}
|
||||
|
||||
FMT_OUTPUT="$(emoji ${{ steps.fmt.outcome }}) OpenTofu Format and Style"
|
||||
INIT_OUTPUT="$(emoji ${{ steps.init.outcome }}) OpenTofu Initialization"
|
||||
VALIDATE_OUTPUT="$(emoji ${{ steps.validate.outcome }}) OpenTofu Validation"
|
||||
PLAN_OUTPUT="$(emoji ${{ steps.plan.outcome }}) OpenTofu Plan 📖"
|
||||
FMT_OUTPUT="$(emoji "${{ steps.fmt.outcome }}") OpenTofu Format and Style"
|
||||
INIT_OUTPUT="$(emoji "${{ steps.init.outcome }}") OpenTofu Initialization"
|
||||
VALIDATE_OUTPUT="$(emoji "${{ steps.validate.outcome }}") OpenTofu Validation"
|
||||
PLAN_OUTPUT="$(emoji "${{ steps.plan.outcome }}") OpenTofu Plan 📖"
|
||||
|
||||
COMMENT_BODY=$(cat <<EOF
|
||||
### ${{ forge.workflow }}
|
||||
### ${{ forge.workflow }}
|
||||
|
||||
${FMT_OUTPUT}
|
||||
${INIT_OUTPUT}
|
||||
${VALIDATE_OUTPUT}
|
||||
${FMT_OUTPUT}
|
||||
${INIT_OUTPUT}
|
||||
${VALIDATE_OUTPUT}
|
||||
|
||||
<details><summary>Validation Output</summary>
|
||||
<details><summary>Validation Output</summary>
|
||||
|
||||
```
|
||||
${{ steps.validate.outputs.stdout }}
|
||||
```
|
||||
```
|
||||
${{ steps.validate.outputs.stdout }}
|
||||
```
|
||||
|
||||
</details>
|
||||
</details>
|
||||
|
||||
${PLAN_OUTPUT}
|
||||
${PLAN_OUTPUT}
|
||||
|
||||
<details><summary>Show Plan</summary>
|
||||
<details><summary>Show Plan</summary>
|
||||
|
||||
```
|
||||
${{ steps.plan.outputs.stdout }}
|
||||
```
|
||||
```
|
||||
${{ steps.plan.outputs.stdout }}
|
||||
```
|
||||
|
||||
</details>
|
||||
EOF
|
||||
)
|
||||
</details>
|
||||
EOF
|
||||
)
|
||||
|
||||
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue