-
Notifications
You must be signed in to change notification settings - Fork 40
35 lines (28 loc) · 1.17 KB
/
update_taxon_constraints.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Update taxon constraints
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * *'
jobs:
update:
runs-on: ubuntu-latest
container: obolibrary/odkfull:${{ vars.ODK_VERSION }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Work around https://github.com/peter-evans/create-pull-request/issues/1170
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Update taxon constraints
run: touch src/taxon_constraints/never_in_taxon.tsv src/taxon_constraints/only_in_taxon.tsv src/taxon_constraints/present_in_taxon.tsv && cd src/ontology && make imports/go_taxon_constraints.owl && cd ../..
- name: Create PR
uses: peter-evans/create-pull-request@v5
with:
title: Update taxon constraints
branch: update-taxon-constraints
add-paths: |
src/taxon_constraints/never_in_taxon.ofn
src/taxon_constraints/only_in_taxon.ofn
src/taxon_constraints/present_in_taxon.ofn
src/taxon_constraints/present_in_taxon_annotations.ofn
src/ontology/imports/go_taxon_constraints.owl
token: ${{ secrets.PR_ACTION_TOKEN }}