update visual impairment question #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build knowledge-base | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: true | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.11.1" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run build | |
| run: npm run build | |
| - name: Commit and push if build output changed | |
| run: | | |
| set -e | |
| git add build/def.built.ttl | |
| if git diff --staged --quiet; then | |
| echo "No changes in build/def.built.ttl. Skipping commit." | |
| exit 0 | |
| fi | |
| echo "Changes detected in build/def.built.ttl. Committing..." | |
| git -c user.name="github-actions[bot]" \ | |
| -c user.email="41898282+github-actions[bot]@users.noreply.github.com" \ | |
| commit -m "Update def.built.ttl [skip ci]" | |
| git push |