Extract Toxicology Tools from bio.tools #76
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: Extract Toxicology Tools from bio.tools | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 0" | |
push: | |
paths: | |
- '*.groovy' | |
jobs: | |
bioschemas: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install groovy | |
run: sudo apt install groovy | |
- name: Extract Bioschemas | |
run: | | |
groovy extractInfo.groovy | tee tools.ttl | |
- name: Commit Turtle | |
run: | | |
git config --global user.name 'GitHub Action' | |
git config --global user.email '[email protected]' | |
git add *.ttl | |
if git diff --exit-code --staged; then | |
echo "No changes" | |
else | |
git commit -m 'Extracted new data from bio.tools' | |
git push | |
fi |