Add dispatch_workflow event to workflow file. #4
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: Process URLs Workflow | ||
on: | ||
dispatch_workflow: | ||
push: | ||
branches: | ||
- models/hydrate | ||
paths: | ||
- 'app/urls.txt' | ||
jobs: | ||
process-urls: | ||
runs-on: [self-hosted, rpi-swarm] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip3 install requests minio weaviate pydantic pydantic-settings unstructured | ||
shell: bash | ||
- name: Run Hydrate URLs Script | ||
run: | | ||
python3 hydrate.py | ||
working-directory: ./app | ||
shell: bash |