Testing approval status.
This commit is contained in:
@@ -166,6 +166,7 @@ jobs:
|
||||
working_directory: cloudflare
|
||||
|
||||
- name: Wait for manual approval
|
||||
id: tf-plan-approval
|
||||
uses: https://git.trez.wtf/Trez/gitea-manual-approval@main
|
||||
with:
|
||||
token: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||
@@ -179,6 +180,11 @@ jobs:
|
||||
${{ steps.tofu-plan.outputs.plan-output }}
|
||||
````
|
||||
|
||||
- name: Deploy if approved
|
||||
if: steps.tf-plan-approval.outputs.approval_status == 'approved'
|
||||
run: |
|
||||
echo "✅ Approved! Proceeding with deployment..."
|
||||
|
||||
# apply:
|
||||
# name: Apply Tofu Plan
|
||||
# needs: plan-approval
|
||||
|
||||
Reference in New Issue
Block a user