From fbac31731dce0764ea262311c98a6837c7d50ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9r=C3=A9nice=20Batut?= Date: Wed, 25 Sep 2024 09:36:30 +0200 Subject: [PATCH] Add json to tool sublist archive (#177) --- .github/workflows/fetch_filter_resources.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fetch_filter_resources.yaml b/.github/workflows/fetch_filter_resources.yaml index 313f3d83..10c774ea 100644 --- a/.github/workflows/fetch_filter_resources.yaml +++ b/.github/workflows/fetch_filter_resources.yaml @@ -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 @@ -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