Files
satshkd-vercel/updaterate.js
Claude 447f740f59 Remove all HKD/satshkd support, keep only EUR version
- Removed all HKD routes (/en, /zh-cn, /zh-hk) from index.js
- Removed HKD locale files (en.json, zh-cn.json, zh-hk.json)
- Removed HKD calculation files (calculate.js, btcpoll.js, updaterate.js from old version)
- Removed HKD historical data files (hkd_historical, hkd_historical_dedup)
- Renamed EUR-specific files to standard names:
  - calculate-eur.js -> calculate.js
  - btcpoll-eur.js -> btcpoll.js
  - updaterate-eur.js -> updaterate.js
  - eur_historical -> historical
- Updated all locale files to reference 'historical' instead of 'eur_historical'
- Updated default route to redirect to /en-eur instead of /en
- Updated GitHub Actions workflow to only run EUR data updates
- Updated all references in code to use renamed files

This creates a clean EUR-only implementation ready for deployment at eursat.eu
2025-11-09 09:36:33 +00:00

14 lines
328 B
JavaScript

const core = require('@actions/core');
const poll = require('./btcpoll');
// modify this to ping url, get data and update, commit and push file to github repo
try {
const res = poll.main()
console.log("main response: ", res)
core.setOutput('✅ Success');
} catch (error) {
core.setFailed(`🛑 ${error.message}`);
}