mirror of
https://github.com/aljazceru/satshkd-vercel.git
synced 2025-12-17 05:04:24 +01:00
- 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
14 lines
328 B
JavaScript
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}`);
|
|
}
|
|
|