Skip to content

chore(seo): 每日更新匯差範例數據#407

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
chore/daily-seo-rate-update
Open

chore(seo): 每日更新匯差範例數據#407
github-actions[bot] wants to merge 1 commit into
mainfrom
chore/daily-seo-rate-update

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

自動更新:RateWise 匯率 fallback 與 SEO 匯差範例數據

由 GitHub Actions 排程每日自動執行。腳本:update-seo-rate-examples.mjs

資料來源雙重驗證

來源 說明
cdn.jsdelivr.net 台銀牌告 現金賣出價(臨櫃實際到手)
open.er-api.com 市場中間價(Google / XE / Wise / Apple 基準)
台銀 (買入+賣出)/2 雙重驗證,差距 ≤ 2% 才通過

生成欄位

foreignAtCash / foreignAtMarketMid / diffForeign / diffTWD / diffPct / marketMid / bankMid

自動化

  • PR 建立後交由 branch protection、required checks 與 maintainer review 控制合併
  • 若 repo 啟用 GitHub auto-merge / merge queue,應由 GitHub 在條件滿足後合併
  • 無變更時不建立 PR,靜默略過
  • 幣別資料缺漏時腳本 exit(1),工作流程明確失敗

@github-actions github-actions Bot force-pushed the chore/daily-seo-rate-update branch 7 times, most recently from 93ab406 to f3d459c Compare May 24, 2026 06:12
@github-actions github-actions Bot force-pushed the chore/daily-seo-rate-update branch 7 times, most recently from a9408dd to 5d79665 Compare May 31, 2026 06:29
@github-actions github-actions Bot force-pushed the chore/daily-seo-rate-update branch 4 times, most recently from 2d812e2 to 7df0cf7 Compare June 4, 2026 06:53
- 自動更新 build-time fallback 匯率 snapshot
- 自動更新各幣別現金賣出 vs 市場中間價差距(換 3 萬台幣情境)
- 雙重驗證:open.er-api.com 中間價 vs 台銀自身 (買入+賣出)/2 中間價
- 差距超過 2% 幣別已警告(東南亞幣別預期偏高)

測試:GitHub Actions 排程自動觸發
@github-actions github-actions Bot force-pushed the chore/daily-seo-rate-update branch from 7df0cf7 to 7b72daa Compare June 5, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants