-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f523f9
commit 071f01b
Showing
5 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,17 @@ permissions: | |
contents: write | ||
|
||
jobs: | ||
fetch-all-tools: | ||
fetch-all-tools-stepwise: | ||
runs-on: ubuntu-latest | ||
name: Fetch all tool stepwise | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
subset: | ||
- repositories01.list | ||
- repositories02.list | ||
- repositories03.list | ||
- repositories04.list | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
|
@@ -26,8 +35,7 @@ jobs: | |
- name: Run script | ||
# run: bash bin/extract_all_tools.sh | ||
run: | | ||
chmod +x bin/extract_all_tools.sh | ||
bin/extract_all_tools.sh | ||
'bash ./bin/extract_all_tools.sh "${{ matrix.subset }}"' | ||
env: | ||
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Commit all tools | ||
|
@@ -37,3 +45,24 @@ jobs: | |
git add results | ||
git commit -m "fetch all tools bot" | ||
git push | ||
fetch-all-tools-merge: | ||
runs-on: ubuntu-latest | ||
name: Fetch all tools merge | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- name: Install requirement | ||
run: python -m pip install -r requirements.txt | ||
- name: Run script | ||
run: | | ||
'bash ./bin/extract_all_tools_merge.sh' | ||
'bash ./bin/extract_all_tools_downstream.sh' | ||
env: | ||
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Commit all tools | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add results | ||
git commit -m "fetch all tools bot" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p 'results/' | ||
|
||
python bin/create_interactive_table.py \ | ||
--table "results/all_tools.tsv" \ | ||
--template "data/interactive_table_template.html" \ | ||
--output "results/index.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
cat 'results/*_tools.tsv' > 'results/all_tools.tsv' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p 'results/' | ||
|
||
output="results/${1}_tools.tsv" | ||
|
||
python bin/extract_galaxy_tools.py \ | ||
extractools \ | ||
--api $GITHUB_API_KEY \ | ||
--all_tools $output \ | ||
--planemorepository $1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters