From 171ab6316f9c05e2c260a600354ccfe1d4780b4c Mon Sep 17 00:00:00 2001 From: Robert Allaway Date: Mon, 14 Oct 2024 15:02:58 -0500 Subject: [PATCH] Update schematic-schema-convert.yml --- .github/workflows/schematic-schema-convert.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/schematic-schema-convert.yml b/.github/workflows/schematic-schema-convert.yml index 9e80651..c450a0d 100644 --- a/.github/workflows/schematic-schema-convert.yml +++ b/.github/workflows/schematic-schema-convert.yml @@ -12,7 +12,8 @@ on: env: schema_filename: nf_research_tools.rdb.model.csv - + SCHEMATIC_VERSION: 24.7.2 # please update .devcontainer as well until this can be set globally somewhere... + jobs: build: runs-on: ubuntu-22.04 @@ -28,13 +29,18 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository - - - name: Install schematic and convert schema #temporarily revert to this to use edge version of schematic - shell: bash + + # Set up supported python. + - uses: actions/setup-python@v5 + with: + python-version: '3.10.12' + + - name: Setup schematic and do another convert pass + id: schematic-convert run: | - pip install schematicpy + pip install schematicpy==$SCHEMATIC_VERSION + pip show schematicpy schematic schema convert $schema_filename -o nf-research-tools.jsonld - - name: Commit files run: |