Run Dashboard #18
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
name: Run Dashboard | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths: | |
- 'dashboard-config.yml' | |
- 'Makefile' | |
schedule: | |
# This will run at 05:48 on first day of the month in every month from January through December. | |
- cron: "48 5 1 1-12 *" | |
jobs: | |
dashboard: | |
runs-on: ubuntu-latest | |
container: obolibrary/odkfull:latest | |
strategy: | |
max-parallel: 1 | |
steps: | |
- name: Checkout main branch | |
uses: actions/checkout@v3 | |
- 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@v4 | |
with: | |
commit-message: Update dashboard run | |
title: 'Update dashboard run' | |
body: | | |
Updates the Custom OBO Dashboard |