Skip to content

Commit

Permalink
trigger CIs on workflow_run event (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzierep authored Mar 4, 2024
1 parent fa19953 commit cea51e8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 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 @@ -35,10 +35,11 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install requirement
run: python -m pip install -r requirements.txt
- name: Run script
- name: Run script #needs PAT to access other repos
run: |
export GITHUB_API_KEY=${{ secrets.GH_API_TOKEN }}
bash ./bin/extract_all_tools_stepwise.sh "${{ matrix.subset }}"
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
run: |
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/filter_communities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ name: Filter community tools
on:
workflow_dispatch:

# the workflow it triggered when all_tools_tsv is changed
# the workflow it triggered when all tools are fetched
workflow_run:
workflows: ["Fetch all tools"]
types:
- completed

# the workflow it also triggered when the community definitions are changed
push:
paths:
- 'results/**'
- 'data/communities**'
branches: ["main"]

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
name: Deploy static content to Pages

on:
# the workflow is triggered when any of the results are changed
push:
paths:
- 'results/**'
branches: ["main"]

# the workflow it triggered when the tools where filtered
workflow_run:
workflows: ["Filter community tools"]
types:
- completed

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down

0 comments on commit cea51e8

Please sign in to comment.