Skip to content

Commit

Permalink
add manual trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
TanmoySG committed Sep 14, 2024
1 parent 3847e85 commit b068a39
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/data-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ jobs:
WDB_USERNAME: ${{ secrets.WDB_USERNAME }}
WDB_PASSWORD: ${{ secrets.WDB_PASSWORD }}
run: |
echo '## Sync Summary πŸ“‹' >> $GITHUB_STEP_SUMMARY
echo '### Sync Summary πŸ“‹' >> $GITHUB_STEP_SUMMARY
trigger=$(echo ${{ github.event_name }})
if [ $trigger == "workflow_dispatch" ]; then
echo "πŸ’‘ Trigger: Manual" >> $GITHUB_STEP_SUMMARY
echo "πŸ’‘ Trigger: `Manual`" >> $GITHUB_STEP_SUMMARY
elif [ $trigger == "push" ]; then
echo "πŸ’‘ Trigger: Record Updated" >> $GITHUB_STEP_SUMMARY
echo "πŸ’‘ Trigger: `Record Updated`" >> $GITHUB_STEP_SUMMARY
fi
cd ${GITHUB_WORKSPACE}/push
pip install -r requirements.txt
echo "### πŸͺ΅ Sync Run Logs" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "πŸͺ΅ Sync Run Logs" >> $GITHUB_STEP_SUMMARY
echo >> $GITHUB_STEP_SUMMARY
python3 app.py
cat push.log
cat push.log >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit b068a39

Please sign in to comment.