Skip to content

Filter community resources #7

Filter community resources

Filter community resources #7

name: Filter community tools
on:
workflow_dispatch:
# the workflow it triggered when all_tools_tsv is changed
push:
paths:
- 'results/all_tools.tsv'
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "filter"
cancel-in-progress: false
permissions:
contents: write
jobs:
filter-all-tools:
runs-on: ubuntu-20.04
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/get_community_tools.sh
- name: Commit results
# commit the new filtered data, only if stuff was changed
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git pull --no-rebase -s recursive -X ours
git add results
git status
git diff --quiet && git diff --staged --quiet || (git commit -m "fetch all tools bot - step filter")
git push