mirror of
https://github.com/tvishia29-alt/FXandRatesDashboard.git
synced 2026-07-27 16:07:44 +00:00
Modify update workflow to rebase before push
Change commit strategy to include pull before push.
This commit is contained in:
@@ -42,5 +42,7 @@ jobs:
|
||||
git config user.name "FX Radar Bot"
|
||||
git config user.email "bot@fxradar.app"
|
||||
git add data.json
|
||||
git diff --staged --quiet || git commit -m "📊 Update market data $(date -u '+%Y-%m-%d %H:%M UTC')"
|
||||
git push
|
||||
git diff --staged --quiet && exit 0
|
||||
git commit -m "📊 Update market data $(date -u '+%Y-%m-%d %H:%M UTC')"
|
||||
git pull --rebase origin main
|
||||
git push origin main
|
||||
|
||||
Reference in New Issue
Block a user