diff --git a/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml b/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml index 909afc2..6a00b67 100644 --- a/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml +++ b/.gitea/workflows/cloudflare-auto-pr-tofu-pipeline.yml @@ -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