Skip to content

Commit

Permalink
use tj-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bento007 committed Apr 10, 2024
1 parent fd44236 commit 1698f86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/generate_all_ontology.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
run: |
cd tools/ontology-builder
pip install -r requirements.txt
- name: Modified ontology info
uses: tj-actions/changed-files@v44
id: modified-ontology-info
with:
files: |
- **ontology-info.json
- name: setup git
run: |
git config user.name github-actions
Expand All @@ -42,14 +48,8 @@ jobs:
python3 ./tools/ontology-builder/src/all_ontology_generator.py
git add ./ontology-assets/*.json.gz
git add ./ontology-assets/ontology_info.json
- name: update API if ontology-info.json was upated
id: check
run: |
echo "Checking for changes in ontology-info.json"
git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep "ontology-assets/ontology_info.json"
echo "::set-output name=changed::${?}"
- name: update API
if: steps.check.outputs.changed == 0
if: steps.modified-ontology-info.outputs.any_changed == true
run: |
cat ${{ github.ref }} >> ./api/python/ontology-assets-version.txt
git add ./api/python/ontology-assets-version.txt
Expand Down
2 changes: 1 addition & 1 deletion ontology-assets/ontology_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
}
},
"v5.1.0": {
"v5.2.0": {
"ontologies": {
"CL": {
"version": "v2024-01-04",
Expand Down

0 comments on commit 1698f86

Please sign in to comment.