Skip to content

Commit

Permalink
Create external_content.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Aug 6, 2024
1 parent 9ca354c commit 5397eee
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/external_content.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Update Externally Provided Content

on:
# schedule:
# - cron: '0 14 * * 1'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
container: obolibrary/odkfull:v1.5.2

steps:
- name: Checkout main branch
uses: actions/checkout@v3
with:
ref: automate-external-content

- name: Update Externally Provided Content
run: |
cd src/ontology
make GITHUB_ACTION=true IMP=false PAT=false update-external-content -B
# This is important if we are out of sync between Mondo and Mondo Ingest:
# We need to eventually add a check to ensure that no subclass axioms have been added or removed
# We should consider to create a seperate curation workflows with a table with previously supported and now not anymore supported subclass axioms
- name: QC to ensure that nothing other than provenance has changed
run: |
cd src/ontology
make GITHUB_ACTION=true IMP=false PAT=false qc -B
- name: Run ontology QC checks
env:
DEFAULT_BRANCH: master
run: cd src/ontology; make GITHUB_ACTION=true IMP=false PAT=false test_owlaxioms -B

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch-suffix: short-commit-hash
labels: Automated
body: "Update the externally managed content."
title: "Externally managed content update"
base: ${{ github.head_ref }}
branch: "externally_managed_content"
token: ${{ secrets.GH_TOKEN }}
reviewers: "matentzn"

0 comments on commit 5397eee

Please sign in to comment.