Skip to content

Commit 1e715d6

Browse files
authored
Merge pull request #77 from INCATools/automate-implementer-list
Automate updating of implementer list in README.md
2 parents 197bcdc + 62b944f commit 1e715d6

File tree

6 files changed

+1141
-951
lines changed

6 files changed

+1141
-951
lines changed

.github/workflows/update-readme.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Update README
2+
3+
on:
4+
# Trigger the workflow on push to specific branches, or manually or on a schedule
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
schedule:
10+
# Schedule the workflow to run every day at midnight (optional)
11+
- cron: '0 0 * * *'
12+
13+
jobs:
14+
update-readme:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.x' # Install the latest version of Python 3.x
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install .
32+
33+
- name: Update README
34+
env:
35+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
36+
run: ochange update-readme $GH_TOKEN
37+
38+
- name: Create Pull Request
39+
uses: peter-evans/create-pull-request@v4
40+
with:
41+
token: ${{ secrets.GH_TOKEN }}
42+
commit-message: "Update README with ontobot-change-agent resources"
43+
title: "Automated README update by ontobot-change-agent"
44+
body: "This is an automated update of the README file with the latest ontology resources."
45+
branch: "ontobot-readme-update-${{ github.run_number }}"
46+
labels: "automated pr"

README.md

+10-31
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,17 @@ Update ontologies using change language.
1010

1111
[Read the docs](https://hrshdhgd.github.io/ontobot-change-agent/index.html)
1212

13-
Ontology resources that are powered by `ontobot-change-agent`:
14-
- Via [`oaklib`](https://github.com/INCATools/ontology-access-kit)
15-
- [MONDO](https://github.com/monarch-initiative/mondo/blob/master/.github/workflows/ontobot.yaml)
16-
- [GO](https://github.com/geneontology/go-ontology/blob/master/.github/workflows/new_pr.yml)
17-
- [UBERON](https://github.com/obophenotype/uberon/blob/master/.github/workflows/auto-pr-ontobot.yml)
18-
- [PATO](https://github.com/pato-ontology/pato/blob/master/.github/workflows/onotobot.yml)
19-
- Via [`kgcl-java`](https://github.com/gouttegd/kgcl-java)
20-
- [ENVO](https://github.com/hrshdhgd/envo/blob/master/.github/workflows/ontobot.yml)
21-
- [CL](https://github.com/obophenotype/cell-ontology/blob/master/.github/workflows/ontobot.yml)
22-
<!-- ## Installation -->
23-
24-
<!-- Uncomment this section after first release
25-
The most recent release can be installed from
26-
[PyPI](https://pypi.org/project/ontobot_change_agent/) with:
27-
28-
```bash
29-
$ pip install ontobot-change-agent
30-
```
31-
-->
32-
33-
<!-- The most recent code and data can be installed directly from GitHub with:
34-
35-
```bash
36-
$ pip install git+https://github.com/hrshdhgd/ontobot-change-agent.git
37-
``` -->
38-
39-
<!-- ## Contributing
40-
41-
Contributions, whether filing an issue, making a pull request, or forking, are appreciated. See
42-
[CONTRIBUTING.md](https://github.com/hrshdhgd/ontobot-change-agent/blob/master/.github/CONTRIBUTING.md) for more information on getting involved. -->
43-
13+
<!-- IMPLEMENTERS_START -->
4414

15+
Ontology resources that are powered by `ontobot-change-agent`:
16+
- [geneontology/go-ontology](https://github.com/geneontology/go-ontology/blob/6fbedcc5650a7a5363123d04ace38413434d709f/.github/workflows/new_pr.yml)
17+
- [monarch-initiative/mondo](https://github.com/monarch-initiative/mondo/blob/ede6a34907480f18353539fd3df9be31d9f01cdf/.github/workflows/ontobot.yaml)
18+
- [obophenotype/uberon](https://github.com/obophenotype/uberon/blob/e0ca62d37dfb665d5ef8f4a0c7014ae20af28531/.github/workflows/auto-pr-ontobot.yml)
19+
- [EnvironmentOntology/envo](https://github.com/EnvironmentOntology/envo/blob/cf0db392bc566c68cfafaa3a8e32ad218f216a8e/.github/workflows/ontobot.yml)
20+
- [obophenotype/cell-ontology](https://github.com/obophenotype/cell-ontology/blob/2180772b156cf79797b04cc494efc8185088428c/.github/workflows/ontobot.yml)
21+
- [pato-ontology/pato](https://github.com/pato-ontology/pato/blob/f5573b017aba14714af17da975834b095000d99a/.github/workflows/onotobot.yml)
22+
23+
<!-- IMPLEMENTERS_END -->
4524

4625
### License
4726

0 commit comments

Comments
 (0)