Bug Content Classification Workflow #34
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: Bug Content Classification Workflow | |
on: | |
workflow_dispatch: ##Trigger manually | |
##schedule every 2 hours | |
# schedule: | |
# - cron: '0 */2 * * *' | |
# ##whenever issue is opened | |
# issues: | |
# types: [opened] | |
##################Uncomment above code to run the workflow periodically#################### | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install Python Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run Script | |
env: | |
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} | |
API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
run: | | |
python src/run_filter.py > result.txt | |
cat result.txt |