Skip to content

Commit

Permalink
Use personal access token for git push
Browse files Browse the repository at this point in the history
in fetch-all-tools-merge job, so it can trigger the "Filter community tools"
workflow. See https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow

Closes #57 .
  • Loading branch information
nsoranzo committed Mar 4, 2024
1 parent cea51e8 commit 74b9a72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/fetch_all_tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
git push
7 changes: 3 additions & 4 deletions bin/extract_all_tools_stepwise.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 74b9a72

Please sign in to comment.