Skip to content

Commit

Permalink
Add json to tool sublist archive (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
bebatut authored Sep 25, 2024
1 parent 767a94c commit fbac317
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/fetch_filter_resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: tools-${{ matrix.subset }}
path: communities/all/resources/${{ matrix.subset }}_tools.tsv
path: communities/all/resources/${{ matrix.subset }}_tools.*
merge-fetch-filter:
runs-on: ubuntu-20.04
needs: fetch-tools-stepwise
Expand All @@ -91,6 +91,8 @@ jobs:
pattern: tools-*
merge-multiple: true
path: communities/all/resources/
- name: Display structure of downloaded files
run: ls -R communities/all/resources/
- name: Merge all tools
run: | #merge files with only one header -> https://stackoverflow.com/questions/16890582/unixmerge-multiple-csv-files-with-same-header-by-keeping-the-header-of-the-firs; map(.[]) -> https://stackoverflow.com/questions/42011086/merge-arrays-of-json (get flat array, one tool per entry)
awk 'FNR==1 && NR!=1{next;}{print}' communities/all/resources/repositories*.list_tools.tsv > communities/all/resources/tools.tsv
Expand Down

0 comments on commit fbac317

Please sign in to comment.