Skip to content

Commit 21cdda9

Browse files
committed
new gh action to synchronize bioconductor to biotools
1 parent fddc776 commit 21cdda9

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Update Bioconductor bio.tools files'
2+
description: 'Bioconductor to bio.tools synchronization'
3+
inputs:
4+
repo-user: # id of input
5+
description: 'User that commits modifications'
6+
required: true
7+
repo-token:
8+
description: 'GitHub token to commit modifications'
9+
required: true
10+
runs:
11+
using: "composite"
12+
steps:
13+
- name: Setup Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.12'
17+
- name: Install bc2bt
18+
run:
19+
pip install -r ${{ github.action_path }}/requirements.txt
20+
pip install ${{ github.action_path }}
21+
shell: bash
22+
- name: Synchronize Bioconductor to bio.tools
23+
run: |
24+
bc2bt sync imports/bioconductor data --work-dir /tmp/bc2bt_work
25+
shell: bash
26+
- name: reformat json to a predictable format with jq and sponge
27+
run: |
28+
sudo apt-get update -y
29+
sudo apt-get install moreutils
30+
FILES='data/*/*.biotools.json'
31+
for f in $FILES; do jq --indent 4 'walk( if type == "array" then sort else . end )' $f | sponge $f; echo "processed $f file!"; done
32+
shell: bash

0 commit comments

Comments
 (0)