Skip to content

Commit 13272e7

Browse files
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents c8a0b28 + adc7912 commit 13272e7

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/build.yml

+34
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

scripts/cli.py

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def prepare_mapping_registry(registry_file, output_file):
6868
mapping_set_title = mapping_table.metadata.get("mapping_set_title", mapping_set_id)
6969
mapping_set_description = mapping_table.metadata.get("mapping_set_description", "No description available")
7070
mapping_provider = mapping_table.metadata.get("mapping_provider", "No provider information available")
71+
issue_tracker = mapping_table.metadata.get("issue_tracker", "No issue tracker available")
7172

7273
# Add to registry entry
7374
registry_entry["mapping_sets"].append({
@@ -79,6 +80,7 @@ def prepare_mapping_registry(registry_file, output_file):
7980
"mapping_set_title": mapping_set_title,
8081
"mapping_set_description": mapping_set_description,
8182
"mapping_provider": mapping_provider,
83+
"issue_tracker": issue_tracker,
8284
})
8385

8486
# Add registry entry to combined data

0 commit comments

Comments
 (0)