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 d55ff92 commit 3847e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/data-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ 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
Expand All @@ -36,7 +36,7 @@ jobs:
fi
cd ${GITHUB_WORKSPACE}/push
pip install -r requirements.txt
echo "🪵 Sync Run Logs" >> $GITHUB_STEP_SUMMARY
echo "### 🪵 Sync Run Logs" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
python3 app.py
cat push.log
Expand Down

0 comments on commit 3847e85

Please sign in to comment.