-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1.36 KB
/
update-readme.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
38
39
40
41
42
43
44
45
46
47
48
name: Update README
on:
# Trigger the workflow on push to specific branches, or manually or on a schedule
# push:
# branches:
# - main
workflow_dispatch:
schedule:
# Schedule the workflow to run every day at midnight (optional)
- cron: '0 0 1 * *'
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Install the latest version of Python 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install -U pysolr==3.10.0b2
- name: Update README
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: ochange update-readme $GH_TOKEN
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: "Update README with ontobot-change-agent resources"
title: "Automated README update by ontobot-change-agent"
body: "Updated list of ontology resources powered by `ontobot-change-agent`."
branch: "ontobot-readme-update-${{ github.run_number }}"
labels: "automated pr"
reviewers: "hrshdhgd"