Skip to content

Commit 459b3df

Browse files
authored
Merge pull request #234 from opengeospatial/gbuehler-publish-schema
Needed to correct the references to stringSingleValuesAxis to stringSingleValueAxis in domainBase.json
2 parents f38483c + 554f3ce commit 459b3df

2 files changed

Lines changed: 24 additions & 9 deletions

File tree

‎.github/workflows/publish-schema.yml‎

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build schema
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- master
@@ -14,6 +15,7 @@ jobs:
1415

1516
permissions:
1617
contents: write
18+
pull-requests: write
1719

1820
steps:
1921
- uses: actions/checkout@v4
@@ -47,14 +49,27 @@ jobs:
4749
- name: Remove intermediate bundle
4850
run: rm -rf build
4951

50-
- name: Commit generated schemas
52+
- name: Open PR for generated schemas
53+
env:
54+
GH_TOKEN: ${{ github.token }}
5155
run: |
5256
git config user.name "github-actions[bot]"
5357
git config user.email "github-actions[bot]@users.noreply.github.com"
5458
git add standard/schema/build/
59+
5560
if git diff --cached --quiet; then
5661
echo "No changes to generated schemas"
57-
else
58-
git commit -m "build: regenerate bundled schemas from fragments"
59-
git push
62+
exit 0
6063
fi
64+
65+
branch="automation/schema-${{ github.run_id }}"
66+
git switch -c "$branch"
67+
git commit -m "build: regenerate bundled schemas from fragments"
68+
git push origin "$branch"
69+
70+
gh pr create \
71+
--repo "$GITHUB_REPOSITORY" \
72+
--base master \
73+
--head "$branch" \
74+
--title "Regenerate bundled schemas" \
75+
--body "Generated from the schema fragments by the Build schema workflow."

‎standard/schema/domainBase.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"x" : { "$ref" : "/schemas/numericSingleValueAxis"},
117117
"y" : { "$ref" : "/schemas/numericSingleValueAxis"},
118118
"z" : { "$ref" : "/schemas/numericAxis" },
119-
"t" : { "$ref" : "/schemas/stringSingleValuesAxis" }
119+
"t" : { "$ref" : "/schemas/stringSingleValueAxis" }
120120
},
121121
"required" : [ "x", "y", "z" ],
122122
"additionalProperties" : false
@@ -138,7 +138,7 @@
138138
"x" : { "$ref" : "/schemas/numericSingleValueAxis" },
139139
"y" : { "$ref" : "/schemas/numericSingleValueAxis" },
140140
"z" : { "$ref" : "/schemas/numericSingleValueAxis" },
141-
"t" : { "$ref" : "/schemas/stringSingleValuesAxis" }
141+
"t" : { "$ref" : "/schemas/stringSingleValueAxis" }
142142
},
143143
"required" : [ "x", "y" ],
144144
"additionalProperties" : false
@@ -211,7 +211,7 @@
211211
}
212212
]
213213
},
214-
"t" : { "$ref" : "/schemas/stringSingleValuesAxis" }
214+
"t" : { "$ref" : "/schemas/stringSingleValueAxis" }
215215
},
216216
"required" : [ "composite" ],
217217
"additionalProperties" : false
@@ -344,7 +344,7 @@
344344
]
345345
},
346346
"z" : { "$ref" : "/schemas/numericSingleValueAxis" },
347-
"t" : { "$ref" : "/schemas/stringSingleValuesAxis" }
347+
"t" : { "$ref" : "/schemas/stringSingleValueAxis" }
348348
},
349349
"required" : [ "composite" ],
350350
"additionalProperties" : false
@@ -418,7 +418,7 @@
418418
]
419419
},
420420
"z" : { "$ref" : "/schemas/numericSingleValueAxis" },
421-
"t" : { "$ref" : "/schemas/stringSingleValuesAxis" }
421+
"t" : { "$ref" : "/schemas/stringSingleValueAxis" }
422422
},
423423
"required" : [ "composite" ],
424424
"additionalProperties" : false

0 commit comments

Comments
 (0)