-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
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" |