Skip to content

Provide fix for Issue #9 #25

Provide fix for Issue #9

Provide fix for Issue #9 #25

Workflow file for this run

# MIT licensed
name: openMINDS_MATLAB-schema_build_pipeline
on:
push:
branches:
- pipeline
workflow_dispatch: # This triggers the workflow when a webhook is received
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Run build
run: |
pip install -r requirements.txt
python build.py
- name: Checkout main branch
uses: actions/checkout@v3
with:
ref: main
path: main
token: ${{ secrets.GITHUB_TOKEN }}
- name: Push to main
run: |
rm -rf main/code/schemas/*
rm -rf main/code/mixedtypes/*
cp -R target/* main/code
cp -R main/code/internal/resources/content_files/* main/code/
cp -R main/code/internal/resources/readme_files/* main/code/
cd main
git config --global user.email "[email protected]"
git config --global user.name "openMINDS pipeline"
if [[ $(git add . --dry-run | wc -l) -gt 0 ]]; then
git add .
git commit -m "build triggered by submodule ${{ inputs.repository }} version ${{ inputs.branch }}"
git push -f
else
echo "Nothing to commit"
fi