Plan PR comment and approval steps.
This commit is contained in:
@@ -54,7 +54,7 @@ jobs:
|
|||||||
notification_title: "GITEA: PR Check @ Rinoa"
|
notification_title: "GITEA: PR Check @ Rinoa"
|
||||||
notification_message: "PR Check done 🎟️"
|
notification_message: "PR Check done 🎟️"
|
||||||
|
|
||||||
plan:
|
plan-approval:
|
||||||
name: OpenTofu Plan
|
name: OpenTofu Plan
|
||||||
needs: check-and-create-pr
|
needs: check-and-create-pr
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -119,30 +119,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
working-directory: .
|
working-directory: .
|
||||||
chdir: cloudflare
|
chdir: cloudflare
|
||||||
# destroy:
|
|
||||||
# refresh-only:
|
|
||||||
# refresh:
|
|
||||||
# replace:
|
|
||||||
# target:
|
|
||||||
# target-file:
|
|
||||||
# exclude:
|
|
||||||
# exclude-file:
|
|
||||||
# var:
|
|
||||||
# var-file:
|
|
||||||
out: cloudflare.tfplan
|
out: cloudflare.tfplan
|
||||||
# compact-warnings:
|
|
||||||
# detailed-exitcode:
|
|
||||||
# generate-config-out: .
|
|
||||||
# input: true
|
|
||||||
# json:
|
|
||||||
# lock:
|
|
||||||
# lock-timeout:
|
|
||||||
# no-color:
|
|
||||||
# concise:
|
|
||||||
# parallelism:
|
|
||||||
# state:
|
|
||||||
# show-sensitive:
|
|
||||||
# display-plan:
|
|
||||||
|
|
||||||
- name: Post PR comment
|
- name: Post PR comment
|
||||||
uses: borchero/terraform-plan-comment@v2.4.1
|
uses: borchero/terraform-plan-comment@v2.4.1
|
||||||
@@ -159,7 +136,7 @@ jobs:
|
|||||||
minimum-approvals: 1
|
minimum-approvals: 1
|
||||||
issue-title: "Tofu Plan for ${{ env.PR_NUMBER }}"
|
issue-title: "Tofu Plan for ${{ env.PR_NUMBER }}"
|
||||||
issue-body: "Please approve or deny the deployment of the below Tofu plan"
|
issue-body: "Please approve or deny the deployment of the below Tofu plan"
|
||||||
issue-body-file-path: relative/file_path/wrt/repo/root
|
issue-body-file-path: cloudflare.tfplan
|
||||||
exclude-workflow-initiator-as-approver: false
|
exclude-workflow-initiator-as-approver: false
|
||||||
fail-on-denial: true
|
fail-on-denial: true
|
||||||
additional-approved-words: ''
|
additional-approved-words: ''
|
||||||
|
|||||||
Reference in New Issue
Block a user