Skip to content

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

Merged
github-actions[bot] merged 1 commit into
mainfrom
chore/daily-seo-rate-update
Sep 14, 2026
Merged

chore(seo): 每日更新匯差範例數據#1093
github-actions[bot] merged 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 建立後由 workflow 掛上 GitHub auto-merge(squash),required checks 通過後自動合併
  • 合併仍由 branch protection 與 required checks 把關,checks 未過不會合併
  • 無變更時不建立 PR,靜默略過
  • 幣別資料缺漏時腳本 exit(1),工作流程明確失敗

- 自動更新 build-time fallback 匯率 snapshot
- 自動更新各幣別現金賣出 vs 市場中間價差距(換 3 萬台幣情境)
- 雙重驗證:open.er-api.com 中間價 vs 台銀自身 (買入+賣出)/2 中間價
- 差距超過 2% 幣別已警告(東南亞幣別預期偏高)

測試:GitHub Actions 排程自動觸發
@github-actions

Copy link
Copy Markdown
Contributor Author

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

Copy link
Copy Markdown
Contributor Author

✅ SEO 審計通過!所有 2026 標準驗證項目都符合要求。

  • ✅ Sitemap 2026 標準
  • ✅ Breadcrumb Schema
  • ✅ JSON-LD 結構化數據
  • ✅ 內部連結結構

@github-actions
github-actions Bot merged commit 33521bb into main Sep 14, 2026
23 checks passed
@github-actions
github-actions Bot deleted the chore/daily-seo-rate-update branch September 14, 2026 08:04
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