From 554f3ce92abf122eaec16cc7fcbb8083657c6117 Mon Sep 17 00:00:00 2001 From: Greg Buehler Date: Wed, 23 Sep 2026 15:32:42 -0400 Subject: [PATCH] Needed to correct the references to stringSingleValuesAxis to stringSingleValueAxis in domainBase.json modified publish-schema.yml so that it adds schemas to new PR --- .github/workflows/publish-schema.yml | 23 +++++++++++++++++++---- standard/schema/domainBase.json | 10 +++++----- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-schema.yml b/.github/workflows/publish-schema.yml index 69234e51d..86ef196e1 100644 --- a/.github/workflows/publish-schema.yml +++ b/.github/workflows/publish-schema.yml @@ -1,6 +1,7 @@ name: Build schema on: + workflow_dispatch: push: branches: - master @@ -14,6 +15,7 @@ jobs: permissions: contents: write + pull-requests: write steps: - uses: actions/checkout@v4 @@ -47,14 +49,27 @@ jobs: - name: Remove intermediate bundle run: rm -rf build - - name: Commit generated schemas + - name: Open PR for generated schemas + env: + GH_TOKEN: ${{ github.token }} run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add standard/schema/build/ + if git diff --cached --quiet; then echo "No changes to generated schemas" - else - git commit -m "build: regenerate bundled schemas from fragments" - git push + exit 0 fi + + branch="automation/schema-${{ github.run_id }}" + git switch -c "$branch" + git commit -m "build: regenerate bundled schemas from fragments" + git push origin "$branch" + + gh pr create \ + --repo "$GITHUB_REPOSITORY" \ + --base master \ + --head "$branch" \ + --title "Regenerate bundled schemas" \ + --body "Generated from the schema fragments by the Build schema workflow." \ No newline at end of file diff --git a/standard/schema/domainBase.json b/standard/schema/domainBase.json index 023870c9c..13cda2fd4 100644 --- a/standard/schema/domainBase.json +++ b/standard/schema/domainBase.json @@ -116,7 +116,7 @@ "x" : { "$ref" : "/schemas/numericSingleValueAxis"}, "y" : { "$ref" : "/schemas/numericSingleValueAxis"}, "z" : { "$ref" : "/schemas/numericAxis" }, - "t" : { "$ref" : "/schemas/stringSingleValuesAxis" } + "t" : { "$ref" : "/schemas/stringSingleValueAxis" } }, "required" : [ "x", "y", "z" ], "additionalProperties" : false @@ -138,7 +138,7 @@ "x" : { "$ref" : "/schemas/numericSingleValueAxis" }, "y" : { "$ref" : "/schemas/numericSingleValueAxis" }, "z" : { "$ref" : "/schemas/numericSingleValueAxis" }, - "t" : { "$ref" : "/schemas/stringSingleValuesAxis" } + "t" : { "$ref" : "/schemas/stringSingleValueAxis" } }, "required" : [ "x", "y" ], "additionalProperties" : false @@ -211,7 +211,7 @@ } ] }, - "t" : { "$ref" : "/schemas/stringSingleValuesAxis" } + "t" : { "$ref" : "/schemas/stringSingleValueAxis" } }, "required" : [ "composite" ], "additionalProperties" : false @@ -344,7 +344,7 @@ ] }, "z" : { "$ref" : "/schemas/numericSingleValueAxis" }, - "t" : { "$ref" : "/schemas/stringSingleValuesAxis" } + "t" : { "$ref" : "/schemas/stringSingleValueAxis" } }, "required" : [ "composite" ], "additionalProperties" : false @@ -418,7 +418,7 @@ ] }, "z" : { "$ref" : "/schemas/numericSingleValueAxis" }, - "t" : { "$ref" : "/schemas/stringSingleValuesAxis" } + "t" : { "$ref" : "/schemas/stringSingleValueAxis" } }, "required" : [ "composite" ], "additionalProperties" : false