File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments