@@ -27766,6 +27766,51 @@ function parseParams (str) {
2776627766module.exports = parseParams
2776727767
2776827768
27769+ /***/ }),
27770+
27771+ /***/ 3568:
27772+ /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
27773+
27774+ const core = __nccwpck_require__(7484);
27775+ const { fetchRateLimit } = __nccwpck_require__(5042);
27776+ const { log } = __nccwpck_require__(9630);
27777+
27778+ async function run(overrides = {}) {
27779+ const deps = {
27780+ core,
27781+ fetchRateLimit,
27782+ log,
27783+ ...overrides
27784+ };
27785+ try {
27786+ const token = deps.core.getInput('token');
27787+ if (!token) {
27788+ deps.log('[github-api-usage-tracker] Skipping checkpoint snapshot due to missing token');
27789+ return;
27790+ }
27791+
27792+ deps.log('[github-api-usage-tracker] Fetching checkpoint rate limits...');
27793+ const limits = await deps.fetchRateLimit();
27794+ const resources = limits.resources || {};
27795+
27796+ deps.log('[github-api-usage-tracker] Checkpoint Snapshot:');
27797+ deps.log('[github-api-usage-tracker] ---------------------');
27798+ deps.log(`[github-api-usage-tracker] ${JSON.stringify(resources, null, 2)}`);
27799+
27800+ deps.core.saveState('checkpoint_time', String(Date.now()));
27801+ deps.core.saveState('checkpoint_rate_limits', JSON.stringify(resources));
27802+ } catch (err) {
27803+ deps.core.warning(`[github-api-usage-tracker] Main step snapshot failed: ${err.message}`);
27804+ }
27805+ }
27806+
27807+ if (require.main === require.cache[eval('__filename')]) {
27808+ run();
27809+ }
27810+
27811+ module.exports = { run };
27812+
27813+
2776927814/***/ }),
2777027815
2777127816/***/ 9630:
@@ -27920,36 +27965,12 @@ module.exports = { fetchRateLimit };
2792027965/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
2792127966/******/
2792227967/************************************************************************/
27923- var __webpack_exports__ = {};
27924- const core = __nccwpck_require__(7484);
27925- const { fetchRateLimit } = __nccwpck_require__(5042);
27926- const { log } = __nccwpck_require__(9630);
27927-
27928- async function run() {
27929- try {
27930- const token = core.getInput('token');
27931- if (!token) {
27932- log('[github-api-usage-tracker] Skipping checkpoint snapshot due to missing token');
27933- return;
27934- }
27935-
27936- log('[github-api-usage-tracker] Fetching checkpoint rate limits...');
27937- const limits = await fetchRateLimit();
27938- const resources = limits.resources || {};
27939-
27940- log('[github-api-usage-tracker] Checkpoint Snapshot:');
27941- log('[github-api-usage-tracker] ---------------------');
27942- log(`[github-api-usage-tracker] ${JSON.stringify(resources, null, 2)}`);
27943-
27944- core.saveState('checkpoint_time', String(Date.now()));
27945- core.saveState('checkpoint_rate_limits', JSON.stringify(resources));
27946- } catch (err) {
27947- core.warning(`[github-api-usage-tracker] Main step snapshot failed: ${err.message}`);
27948- }
27949- }
27950-
27951- run();
27952-
27953- module.exports = __webpack_exports__;
27968+ /******/
27969+ /******/ // startup
27970+ /******/ // Load entry module and return exports
27971+ /******/ // This entry module is referenced by other modules so it can't be inlined
27972+ /******/ var __webpack_exports__ = __nccwpck_require__(3568);
27973+ /******/ module.exports = __webpack_exports__;
27974+ /******/
2795427975/******/ })()
2795527976;
0 commit comments