replace association activity with association target group #26
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 build/rps.built.ttl | |
| if git diff --staged --quiet; then | |
| echo "No changes in build/def.built.ttl or build/rps.built.ttl. Skipping commit." | |
| exit 0 | |
| fi | |
| echo "Changes detected in build outputs. Committing..." | |
| git -c user.name="github-actions[bot]" \ | |
| -c user.email="41898282+github-actions[bot]@users.noreply.github.com" \ | |
| commit -m "Update built.ttl files [skip ci]" | |
| git push |