Filter community resources #3
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
name: Filter community tools | |
on: | |
workflow_dispatch: | |
# the workflow it triggered only when all_tools_tsv is changed | |
push: | |
paths: | |
- 'results/all_tools_tsv' | |
branches: ["main"] | |
# 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: | |
fetch-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: | | |
bin/get_community_tools.sh | |
env: | |
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit results | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add results | |
git commit -m "filter communities bot" | |
git push |