Skip to content

Commit

Permalink
Create adjust_OWL_file.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannah-Doerpholz authored Sep 5, 2024
1 parent 941b3c7 commit 87305d9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/adjust_OWL_file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: adjust_OWL_file

on:
push:
paths:
- DPBO.owl
workflow_dispatch:

jobs:
replace_URIs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: replace the URIs in the OWL file non-capitalized
run: |
sed -i 's|purl.obolibrary.org/obo/dpbo|purl.org/nfdi4plants/ontology/dpbo/dpbo|g' DPBO.owl
- name: replace the URIs in the OWL file capitalized
run: |
sed -i 's|purl.obolibrary.org/obo/DPBO|purl.org/nfdi4plants/ontology/dpbo/DPBO|g' DPBO.owl
- name: commit and push
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: 'main'

0 comments on commit 87305d9

Please sign in to comment.