-
-
Notifications
You must be signed in to change notification settings - Fork 52
31 lines (31 loc) · 970 Bytes
/
health.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
name: Health
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
jobs:
providers:
name: Provider Check
runs-on: ubuntu-latest
if: ${{ github.event_name != 'schedule' || github.repository == 'biopragmatics/bioregistry' }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install the Bioregistry
run: pip install -e .[health]
- name: Run the provider checks
run: python -m bioregistry.health providers
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit --all -m "🫀Health Report"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true