Modify update workflow to rebase before push

Change commit strategy to include pull before push.
This commit is contained in:
Tvishi Agarwal
2026-04-09 20:57:21 +01:00
committed by GitHub
parent 60560e1538
commit f04b34d758
+4 -2
View File
@@ -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