Skip to content

clean up cycles

clean up cycles #114

name: schematic-schema-convert
on:
push:
branches:
- '**' # matches every branch
- '!main' # excludes main
paths:
- 'nf_research_tools.rdb.model.csv'
workflow_dispatch:
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
steps:
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y pip python3.10-venv libcurl4-openssl-dev
- uses: actions/checkout@v3
with:
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
# 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==$SCHEMATIC_VERSION
pip show schematicpy
schematic schema convert $schema_filename -o nf-research-tools.jsonld
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "nf-osi[bot]"
git commit -m "Add changes" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}