test trigger #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: Sync Data | |
on: | |
push: | |
branches: ['main'] | |
paths: ['data/*/records.json'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Build and Run | |
env: | |
BASE_URL: ${{ secrets.BASE_URL }} | |
WDB_DATABASE: ${{ secrets.WDB_DATABASE }} | |
WDB_COLLECTION: ${{ secrets.WDB_COLLECTION }} | |
run: | | |
cd ${GITHUB_WORKSPACE}/push | |
pip install -r requirements.txt | |
python3 app.py |