Skip to content

Added a GH action

Added a GH action #1

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches:
- main
paths:
- **/*.ttl

Check failure on line 9 in .github/workflows/extractRQs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/extractRQs.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
jobs:
lint:
name: Extract SPARQL files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Extract
run: python scripts/transformDotTtlToDotSparql.py
- name: Commit new .rq files
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add .
if git diff --exit-code --staged; then
echo "No changes"
else
git pull
git commit -m 'Updated .rq files'
git push
fi