diff --git a/.github/workflows/fetch_all_tools.yaml b/.github/workflows/fetch_all_tools.yaml index 114d521e..6c798772 100644 --- a/.github/workflows/fetch_all_tools.yaml +++ b/.github/workflows/fetch_all_tools.yaml @@ -38,7 +38,7 @@ jobs: - name: Run script #needs PAT to access other repos run: | bash ./bin/extract_all_tools_stepwise.sh "${{ matrix.subset }}" - env: + env: GITHUB_API_KEY: ${{ secrets.GH_API_TOKEN }} - name: Commit all tools # add or commit any changes in results if there was a change, merge with main and push as bot @@ -59,6 +59,7 @@ jobs: - uses: actions/checkout@v4 with: ref: main #pull latest code produced by job 1, not the revision that started the workflow (https://github.com/actions/checkout/issues/439) + token: ${{ secrets.GH_API_TOKEN }} - uses: actions/setup-python@v5 - name: Install requirement run: python -m pip install -r requirements.txt @@ -77,4 +78,4 @@ jobs: git add results git status git diff --quiet && git diff --staged --quiet || (git commit -m "fetch all tools bot - step merge") - git push \ No newline at end of file + git push diff --git a/bin/extract_all_tools_stepwise.sh b/bin/extract_all_tools_stepwise.sh index 7b9cac75..384b776f 100755 --- a/bin/extract_all_tools_stepwise.sh +++ b/bin/extract_all_tools_stepwise.sh @@ -6,7 +6,6 @@ output="results/${1}_tools.tsv" python bin/extract_galaxy_tools.py \ extractools \ - --api $GITHUB_API_KEY \ - --all_tools $output \ - --planemorepository $1 - + --api "$GITHUB_API_KEY" \ + --all_tools "$output" \ + --planemorepository "$1"