commit desde sourcetree #25
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: Run script ttl-transformations when change ttl en doc folder | |
| on: | |
| push: | |
| paths: | |
| - 'doc/**/*.ttl' | |
| permissions: | |
| contents: write | |
| jobs: | |
| ejecutar-script: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: clon repo | |
| uses: actions/checkout@v3 | |
| - name: set Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: install dependencies | |
| run: | | |
| pip install -r doc/web_generation_scripts/requirements.txt | |
| - name: run script | |
| run: | | |
| python doc/web_generation_scripts/ttl_transformations.py -i doc -o doc | |
| - name: Configure Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Commit changes | |
| run: | | |
| git add doc/**/*.html || true | |
| git add doc/**/*.jsonld || true | |
| git commit -m "Auto-generate HTML and JSON-LD from TTL changes" || echo "No changes to commit" | |
| git push |