Publish ontologies #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish main ontologies | |
run-name: Publish ontologies | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: get and commit files | |
run: | | |
git checkout main | |
git checkout main -- ./ontology | |
pip install -r requirements.txt | |
python copy_ontology.py | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add -f docs/ | |
git commit -m "publish main ontologies" -a | |
- name: push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |