Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
MattTJung committed Dec 8, 2023
1 parent 6be1050 commit 85b953c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/get_ontoversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import rdflib

parser = argparse.ArgumentParser(prog='get_ontoversion', description='Get version of an ontology')
parser.add_argument('-l', help='Location of the ontology file', default='main/ontology.ttl')
parser.add_argument('ontology_file', help='Location of the ontology file')
args = parser.parse_args()

g = rdflib.Graph()
g.parse(location=args.l)
g.parse(location=args.ontology_file)

# Get first URI and version of the ontology (assuming there is only one)
QUERY_OBJECT="""
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: [styleguide, oops]
if: ${{ github.ref_name }} == 'main'
if: github.ref_name == 'main'
steps:
## First step: Checkout main from the repository
- uses: actions/checkout@v3
Expand All @@ -92,7 +92,7 @@ jobs:
- name: Get ontology version
run: |
pip install rdflib
echo "ONTO_VERSION=$(python deploy_main/.github/workflows/get_ontoversion.py)" >> "$GITHUB_ENV"
echo "ONTO_VERSION=$(python deploy_main/.github/workflows/get_ontoversion.py deploy_main/ontology.ttl)" >> "$GITHUB_ENV"
## Third step: Build HTML and ontology serializations for the current version
- name: Build HTML for main
run: |
Expand All @@ -116,7 +116,7 @@ jobs:
update_release:
runs-on: ubuntu-latest
needs: [styleguide, oops]
if: ${{ github.ref_name }} == 'main'
if: github.ref_name == 'main'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -126,7 +126,7 @@ jobs:
id: get_onto_version
run: |
pip install rdflib
ontoversion=$(python release_main/.github/workflows/get_ontoversion.py)
ontoversion=$(python release_main/.github/workflows/get_ontoversion.py release_main/ontology.ttl)
echo "Got version from python script: $ontoversion"
echo "V_ONTO_VERSION=$ontoversion" >> $GITHUB_ENV
- name: Check if release exists
Expand Down

0 comments on commit 85b953c

Please sign in to comment.