Plan PR comment and approval steps.
This commit is contained in:
@@ -54,7 +54,7 @@ jobs:
|
||||
notification_title: "GITEA: PR Check @ Rinoa"
|
||||
notification_message: "PR Check done 🎟️"
|
||||
|
||||
plan:
|
||||
plan-approval:
|
||||
name: OpenTofu Plan
|
||||
needs: check-and-create-pr
|
||||
runs-on: ubuntu-latest
|
||||
@@ -119,30 +119,7 @@ jobs:
|
||||
with:
|
||||
working-directory: .
|
||||
chdir: cloudflare
|
||||
# destroy:
|
||||
# refresh-only:
|
||||
# refresh:
|
||||
# replace:
|
||||
# target:
|
||||
# target-file:
|
||||
# exclude:
|
||||
# exclude-file:
|
||||
# var:
|
||||
# var-file:
|
||||
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
|
||||
uses: borchero/terraform-plan-comment@v2.4.1
|
||||
@@ -159,7 +136,7 @@ jobs:
|
||||
minimum-approvals: 1
|
||||
issue-title: "Tofu Plan for ${{ env.PR_NUMBER }}"
|
||||
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
|
||||
fail-on-denial: true
|
||||
additional-approved-words: ''
|
||||
|
||||
Reference in New Issue
Block a user