From 9e1610f00bade470f282dca9343f7edf63dfdd27 Mon Sep 17 00:00:00 2001 From: Junaid Ahmed Date: Sat, 25 Apr 2026 16:24:11 +0100 Subject: [PATCH] ci(mysql): dispatch personal-cloud apply after firebase-cloud apply After every successful firebase-cloud terraform apply, fire terraform-mysql-apps.yaml on poly-glot/personal-cloud so any new entries in mysql-app-catalog get DBs + secret versions provisioned without a manual workflow click. personal-cloud's apply is idempotent so unconditional dispatch is safe. Uses MYSQL_APPS_DISPATCH_TOKEN (fine-grained PAT scoped to poly-glot/personal-cloud actions:write). --- .github/workflows/terraform.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 42ab9dd..9fd39ee 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -147,3 +147,8 @@ jobs: echo '```' >> $GITHUB_STEP_SUMMARY terraform output >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY + + - name: Trigger personal-cloud MySQL provisioning + env: + GH_TOKEN: ${{ secrets.MYSQL_APPS_DISPATCH_TOKEN }} + run: gh workflow run terraform-mysql-apps.yaml --repo poly-glot/personal-cloud --ref main