Skip to content

Commit 4f98ff1

Browse files
committed
Create a github action to automatically update registry data
1 parent 384de95 commit 4f98ff1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Rebuild registry files
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'mapping-server.yml'
8+
- 'scripts/cli.py'
9+
schedule:
10+
- cron: "0 0 1 * *"
11+
workflow_dispatch:
12+
13+
jobs:
14+
build_registry:
15+
runs-on: ubuntu-latest
16+
container: obolibrary/odkfull:v1.5.3
17+
18+
steps:
19+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20+
- uses: actions/checkout@v3
21+
22+
- name: Rebuild all registry files
23+
env:
24+
DEFAULT_BRANCH: main
25+
run: make all -B
26+
27+
- name: Create Pull Request
28+
uses: peter-evans/create-pull-request@v3
29+
with:
30+
commit-message: Update registry files
31+
title: 'Update all registry files'
32+
body: |
33+
Updates all registry release files.
34+
assignees: matentzn

0 commit comments

Comments
 (0)