From 60cfdcdf1ed419940c2f1cc958e5d4c8a6c6695f Mon Sep 17 00:00:00 2001 From: itvi-1234 Date: Wed, 2 Dec 2026 20:36:02 +0530 Subject: [PATCH] Quote the generation workflow name in the publish trigger The workflow_run trigger listed the generation workflow inside an unquoted [ ] list. Its name has commas, so YAML read it as three names ("Generate and commit Go", "Python", "TypeScript and Java bindings"), none of which exists, and publishing never started after a generation. The name is quoted now, and a test checks that the trigger names the generation workflow exactly. --- .github/workflows/binding-publish-all.yml | 3 ++- tooling/extension-bindings/ci/test_publish_all.py | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/binding-publish-all.yml b/.github/workflows/binding-publish-all.yml index bfc0510..8b0606b 100644 --- a/.github/workflows/binding-publish-all.yml +++ b/.github/workflows/binding-publish-all.yml @@ -16,7 +16,8 @@ name: Publish bindings to every registry on: workflow_run: - workflows: [Generate and commit Go, Python, TypeScript and Java bindings] + # Quoted: the name has commas, which would otherwise split it into three names. + workflows: ["Generate and commit Go, Python, TypeScript and Java bindings"] types: [completed] branches: [main] workflow_dispatch: diff --git a/tooling/extension-bindings/ci/test_publish_all.py b/tooling/extension-bindings/ci/test_publish_all.py index 72f01b7..d508954 100644 --- a/tooling/extension-bindings/ci/test_publish_all.py +++ b/tooling/extension-bindings/ci/test_publish_all.py @@ -211,5 +211,14 @@ def test_no_card_when_nothing_needs_setup(self) -> None: self.assertIsNone(script.setup_card(findings, lambda url: None)) +class WorkflowTests(unittest.TestCase): + def test_publishing_follows_the_generation_workflow_by_its_exact_name(self) -> None: + workflows = Path(__file__).parents[3] / ".github/workflows" + generate = yaml.safe_load((workflows / "binding-generate.yml").read_text(encoding="utf-8")) + publish = yaml.safe_load((workflows / "binding-publish-all.yml").read_text(encoding="utf-8")) + # A name with commas inside an unquoted [ ] list is read as several names, and nothing triggers. + self.assertEqual(publish[True]["workflow_run"]["workflows"], [generate["name"]]) + + if __name__ == "__main__": unittest.main()