Skip to content

Commit 736d1e1

Browse files
committed
ci:make ci commit + push changes
1 parent 57622c8 commit 736d1e1

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)