Merge pull request #7 from TanmoySG/update-messages-schema #12
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: | |
sync: | |
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_USERNAME: ${{ secrets.WDB_USERNAME }} | |
WDB_PASSWORD: ${{ secrets.WDB_PASSWORD }} | |
run: | | |
echo '### Sync Summary 📋' >> $GITHUB_STEP_SUMMARY | |
cd ${GITHUB_WORKSPACE}/push | |
pip install -r requirements.txt | |
echo "Sync Run Logs" >> $GITHUB_STEP_SUMMARY | |
echo '```' >> $GITHUB_STEP_SUMMARY | |
python3 app.py | |
cat push.log | |
cat push.log >> $GITHUB_STEP_SUMMARY | |
echo '```' >> $GITHUB_STEP_SUMMARY | |
echo "✅ Sync Run Completed." >> $GITHUB_STEP_SUMMARY |