Testing approval status.
This commit is contained in:
@@ -166,6 +166,7 @@ jobs:
|
|||||||
working_directory: cloudflare
|
working_directory: cloudflare
|
||||||
|
|
||||||
- name: Wait for manual approval
|
- name: Wait for manual approval
|
||||||
|
id: tf-plan-approval
|
||||||
uses: https://git.trez.wtf/Trez/gitea-manual-approval@main
|
uses: https://git.trez.wtf/Trez/gitea-manual-approval@main
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BOT_GITEA_TOKEN }}
|
token: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
@@ -179,6 +180,11 @@ jobs:
|
|||||||
${{ steps.tofu-plan.outputs.plan-output }}
|
${{ 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:
|
# apply:
|
||||||
# name: Apply Tofu Plan
|
# name: Apply Tofu Plan
|
||||||
# needs: plan-approval
|
# needs: plan-approval
|
||||||
|
|||||||
Reference in New Issue
Block a user