Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update schematic-schema-convert.yml #35

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/schematic-schema-convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,33 @@ env:
jobs:
build:
runs-on: ubuntu-20.04

steps:
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y pip python3.10-venv libcurl4-openssl-dev
sudo apt-get install -y python3.10 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

- name: Install schematic and convert schema
shell: bash
run: |
python3 -m venv .venv
python3.10 -m venv .venv
chmod 755 .venv/bin/activate
source .venv/bin/activate
pip3 install 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:
Expand Down