From 92a319ddd1e63c652c17c32583310ac45dbdbc8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Mon, 26 Jan 2026 09:33:37 +0100 Subject: [PATCH] :wrench: Rename wrangle to wrangler --- .github/workflows/plugins-deploy-api-doc.yml | 16 ++++++++++++++-- .../{wrangle.toml => wrangler.toml} | 4 ++++ .../{wrangle.toml => wrangler.toml} | 4 ++++ .../{wrangle.toml => wrangler.toml} | 4 ++++ .../icons-plugin/{wrangle.toml => wrangler.toml} | 4 ++++ .../{wrangle.toml => wrangler.toml} | 4 ++++ .../{wrangle.toml => wrangler.toml} | 3 +++ .../table-plugin/{wrangle.toml => wrangler.toml} | 3 +++ ...toml => wrangler-penpot-plugins-api-doc.toml} | 0 9 files changed, 40 insertions(+), 2 deletions(-) rename plugins/apps/colors-to-tokens-plugin/{wrangle.toml => wrangler.toml} (71%) rename plugins/apps/contrast-plugin/{wrangle.toml => wrangler.toml} (69%) rename plugins/apps/create-palette-plugin/{wrangle.toml => wrangler.toml} (70%) rename plugins/apps/icons-plugin/{wrangle.toml => wrangler.toml} (68%) rename plugins/apps/lorem-ipsum-plugin/{wrangle.toml => wrangler.toml} (70%) rename plugins/apps/rename-layers-plugin/{wrangle.toml => wrangler.toml} (71%) rename plugins/apps/table-plugin/{wrangle.toml => wrangler.toml} (68%) rename plugins/{wrangle-penpot-plugins-api-doc.toml => wrangler-penpot-plugins-api-doc.toml} (100%) diff --git a/.github/workflows/plugins-deploy-api-doc.yml b/.github/workflows/plugins-deploy-api-doc.yml index 62a87745bb..f8451e9816 100644 --- a/.github/workflows/plugins-deploy-api-doc.yml +++ b/.github/workflows/plugins-deploy-api-doc.yml @@ -11,7 +11,7 @@ on: - "plugins/libs/plugin-types/REAME.md" - "plugins/tools/typedoc.css" - "plugins/CHANGELOG.md" - - "plugins/wrangle-penpot-plugins-api-doc.toml" + - "plugins/wrangler-penpot-plugins-api-doc.toml" workflow_dispatch: inputs: gh_ref: @@ -98,4 +98,16 @@ jobs: workingDirectory: plugins apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: deploy --config wrangle-penpot-plugins-api-doc.toml --name ${{ env.WORKER_NAME }} + command: deploy --config wrangler-penpot-plugins-api-doc.toml --name ${{ env.WORKER_NAME }} + + - name: Notify Mattermost + if: failure() + uses: mattermost/action-mattermost-notify@master + with: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK }} + MATTERMOST_CHANNEL: bot-alerts-cicd + TEXT: | + ❌ 🧩📚 *[PENPOT PLUGINS] Error deploying API documentation.* + 📄 Triggered from ref: `${{ inputs.gh_ref }}` + 🔗 Run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + @infra diff --git a/plugins/apps/colors-to-tokens-plugin/wrangle.toml b/plugins/apps/colors-to-tokens-plugin/wrangler.toml similarity index 71% rename from plugins/apps/colors-to-tokens-plugin/wrangle.toml rename to plugins/apps/colors-to-tokens-plugin/wrangler.toml index 7722755890..c1d45f3e87 100644 --- a/plugins/apps/colors-to-tokens-plugin/wrangle.toml +++ b/plugins/apps/colors-to-tokens-plugin/wrangler.toml @@ -2,3 +2,7 @@ name = "color-to-tokens-plugin" compatibility_date = "2025-01-01" assets = { directory = "../../dist/apps/color-to-tokens-plugin/browser" } + +[[routes]] +pattern = "WORKER_URI" +custom_domain = true diff --git a/plugins/apps/contrast-plugin/wrangle.toml b/plugins/apps/contrast-plugin/wrangler.toml similarity index 69% rename from plugins/apps/contrast-plugin/wrangle.toml rename to plugins/apps/contrast-plugin/wrangler.toml index 726ae60d6e..86f456ec95 100644 --- a/plugins/apps/contrast-plugin/wrangle.toml +++ b/plugins/apps/contrast-plugin/wrangler.toml @@ -2,3 +2,7 @@ name = "contrast-plugin" compatibility_date = "2025-01-01" assets = { directory = "../../dist/apps/contrast-plugin/browser" } + +[[routes]] +pattern = "WORKER_URI" +custom_domain = true diff --git a/plugins/apps/create-palette-plugin/wrangle.toml b/plugins/apps/create-palette-plugin/wrangler.toml similarity index 70% rename from plugins/apps/create-palette-plugin/wrangle.toml rename to plugins/apps/create-palette-plugin/wrangler.toml index 74c4b73cb6..40f4f67a38 100644 --- a/plugins/apps/create-palette-plugin/wrangle.toml +++ b/plugins/apps/create-palette-plugin/wrangler.toml @@ -2,3 +2,7 @@ name = "create-palette-plugin" compatibility_date = "2025-01-01" assets = { directory = "../../dist/apps/create-palette-plugin" } + +[[routes]] +pattern = "WORKER_URI" +custom_domain = true diff --git a/plugins/apps/icons-plugin/wrangle.toml b/plugins/apps/icons-plugin/wrangler.toml similarity index 68% rename from plugins/apps/icons-plugin/wrangle.toml rename to plugins/apps/icons-plugin/wrangler.toml index 26e7514ec8..0a690dac57 100644 --- a/plugins/apps/icons-plugin/wrangle.toml +++ b/plugins/apps/icons-plugin/wrangler.toml @@ -2,3 +2,7 @@ name = "icons-plugin" compatibility_date = "2025-01-01" assets = { directory = "../../dist/apps/icons-plugin/browser" } + +[[routes]] +pattern = "WORKER_URI" +custom_domain = true diff --git a/plugins/apps/lorem-ipsum-plugin/wrangle.toml b/plugins/apps/lorem-ipsum-plugin/wrangler.toml similarity index 70% rename from plugins/apps/lorem-ipsum-plugin/wrangle.toml rename to plugins/apps/lorem-ipsum-plugin/wrangler.toml index 9e4d9366f0..398691c3ba 100644 --- a/plugins/apps/lorem-ipsum-plugin/wrangle.toml +++ b/plugins/apps/lorem-ipsum-plugin/wrangler.toml @@ -2,3 +2,7 @@ name = "lorem-ipsum-plugin" compatibility_date = "2025-01-01" assets = { directory = "../../dist/apps/lorem-ipsum-plugin/browser" } + +[[routes]] +pattern = "WORKER_URI" +custom_domain = true diff --git a/plugins/apps/rename-layers-plugin/wrangle.toml b/plugins/apps/rename-layers-plugin/wrangler.toml similarity index 71% rename from plugins/apps/rename-layers-plugin/wrangle.toml rename to plugins/apps/rename-layers-plugin/wrangler.toml index 1dc6c2fe0a..4fdc18597d 100644 --- a/plugins/apps/rename-layers-plugin/wrangle.toml +++ b/plugins/apps/rename-layers-plugin/wrangler.toml @@ -3,3 +3,6 @@ compatibility_date = "2025-01-01" assets = { directory = "../../dist/apps/rename-layers-plugin/browser" } +[[routes]] +pattern = "WORKER_URI" +custom_domain = true diff --git a/plugins/apps/table-plugin/wrangle.toml b/plugins/apps/table-plugin/wrangler.toml similarity index 68% rename from plugins/apps/table-plugin/wrangle.toml rename to plugins/apps/table-plugin/wrangler.toml index 516dd54b1e..9c95160a01 100644 --- a/plugins/apps/table-plugin/wrangle.toml +++ b/plugins/apps/table-plugin/wrangler.toml @@ -3,3 +3,6 @@ compatibility_date = "2025-01-01" assets = { directory = "../../dist/apps/table-plugin/browser" } +[[routes]] +pattern = "WORKER_URI" +custom_domain = true diff --git a/plugins/wrangle-penpot-plugins-api-doc.toml b/plugins/wrangler-penpot-plugins-api-doc.toml similarity index 100% rename from plugins/wrangle-penpot-plugins-api-doc.toml rename to plugins/wrangler-penpot-plugins-api-doc.toml