File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,13 +34,23 @@ jobs:
3434 python -m pip install --upgrade pip
3535 pip install -r tools/python/requirements.txt
3636
37- - name : Build ontology assets
37+ - name : Build combined ontology and schemas
3838 run : |
3939 bash ./tools/bash/build/create-combined-turtle.sh src/imaging-ontology/
4040 python ./tools/python/build/create-schemas.py --input build/ontology_combined.ttl --output build/locales/en/schema.json
4141
42- - name : Upload schema bundle as artifact
43- uses : actions/upload-artifact@v4
44- with :
45- name : schema-bundle
46- path : build/*
42+ - name : Commit and push built files back to repo
43+ env :
44+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+ run : |
46+ git config user.name "github-actions[bot]"
47+ git config user.email "github-actions[bot]@users.noreply.github.com"
48+
49+ git add build/
50+
51+ if ! git diff --cached --quiet; then
52+ git commit -m "Update generated build files [skip ci]"
53+ git push origin main
54+ else
55+ echo "No changes in build folder, nothing to commit."
56+ fi
You can’t perform that action at this time.
0 commit comments