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

Provide a generic github action that create a merged OWL version of an edit file. #1577

Closed
matentzn opened this issue Aug 24, 2021 · 7 comments
Labels
pipeline Issues related to development or revision of global Foundry pipelines

Comments

@matentzn
Copy link
Contributor

There are still a a number of ontologies which have hugely outdated OWL ontology versions:
#1446

@balhoff suggests to provide a generic GitHub action for these with some instructions on how to add.

@matentzn
Copy link
Contributor Author

@balhoff

Something like this?

name: OWL release file

on:
  push:
    branches: [ master ]
    paths:
      - 'src/ontology/myontology.obo'
  
  workflow_dispatch:

jobs:
  merge_template:
    runs-on: ubuntu-latest
    strategy:
      max-parallel: 1
    steps:
      - uses: actions/checkout@v2
        with:
          persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
          fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
          ref: ${{ github.head_ref }}
      - name: Create OWL version
        run: cd src/ontology && robot merge --catalog catalog-v001.xml -i myontology.obo  convert --check false -f obo -o ../../myontology.obo
      - name: Create OWL version
        run: cd src/ontology && robot merge --catalog catalog-v001.xml -i myontology.obo  convert --check false -f owl -o ../../myontology.owl
      - name: Commit files
        run: |
          git add src/ontology/ro-edit.owl
          git config --local user.email "[email protected]"
          git config --local user.name "GitHub Action"
          git commit -m "Creating OBO and OWL release files"
      - name: Push changes
        uses: ad-m/github-push-action@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          branch: ${{ GitHub.head_ref }}

@balhoff
Copy link
Contributor

balhoff commented Aug 24, 2021

Need to change runs-on: to ODK?

@balhoff
Copy link
Contributor

balhoff commented Aug 24, 2021

Maybe we can trial this with APO.

@matentzn
Copy link
Contributor Author

I just typed this up without testing it - just to get the picture of whether its going in the right direction. Feel free to take it for a trialrun :D else I will do it at some point.

@matentzn
Copy link
Contributor Author

matentzn commented Sep 5, 2021

@balhoff implemented a first working version here: https://github.com/obophenotype/ascomycete-phenotype-ontology/blob/master/.github/workflows/release.yml

But it currently commits directly to master. Perhaps it would be saver if we committed to branch first.

This is not strictly speaking a OBO foundry issue, so future generations stumbling across this ticket may close it at their own discretion without fear.

@nlharris nlharris added the pipeline Issues related to development or revision of global Foundry pipelines label Sep 5, 2021
@nlharris
Copy link
Contributor

Can we close this?

@matentzn
Copy link
Contributor Author

Yeah, lets close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pipeline Issues related to development or revision of global Foundry pipelines
Projects
None yet
Development

No branches or pull requests

3 participants