-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (37 loc) · 1.22 KB
/
dashboard.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
36
37
name: Run Dashboard
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'dashboard-config.yml'
- 'Makefile'
schedule:
- cron: "0 13 * * 1"
jobs:
dashboard:
runs-on: ubuntu-latest
container: obolibrary/odkfull:dev
strategy:
max-parallel: 1
steps:
- name: Checkout main branch
uses: actions/checkout@v4
- name: work around permission issue
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Clean directories
run: rm -rf dashboard ontologies && mkdir -p dashboard ontologies
- name: Prepare run
run: cp dashboard-config.yml /tools/OBO-Dashboard/dashboard-config.yml && cp -r sparql/ /tools/OBO-Dashboard/sparql
- name: Run dashboard
run: obodash -C dashboard-config.yml
- name: Copy results
run: cp -r /tools/OBO-Dashboard/dashboard/* dashboard/ && cp -r /tools/OBO-Dashboard/build/ontologies/* ontologies/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update dashboard run
title: 'Update dashboard run'
body: |
Updates the OBO NOR dashboard
assignees: pfabry