Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Sep 13, 2023
1 parent be0a864 commit 28f0c97
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build/fingerprint-post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72675,15 +72675,17 @@ function saveDbToCacheAsync(cacheKey) {
*/
function getDbPath() {
external_assert_default()(process.env['RUNNER_TOOL_CACHE'], 'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined');
return external_path_default().join(process.env['RUNNER_TOOL_CACHE'], 'fingerprint.db');
return external_path_default().join(process.env['RUNNER_TOOL_CACHE'], 'fingerprint-storage', 'fingerprint.db');
}

;// CONCATENATED MODULE: ./src/actions/fingerprint-post.ts



executeAction(runAction);
async function runAction(input = collectFingerprintActionInput()) {
console.log('ooxx0');
(0,core.info)(`Saving fingerprint database to cache: ${input.fingerprintDbCacheKey}`);
await saveDbToCacheAsync(input.fingerprintDbCacheKey);
console.log('ooxx1');
}
Expand Down
2 changes: 1 addition & 1 deletion build/fingerprint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72706,7 +72706,7 @@ function saveDbToCacheAsync(cacheKey) {
*/
function getDbPath() {
external_assert_default()(process.env['RUNNER_TOOL_CACHE'], 'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined');
return external_path_default().join(process.env['RUNNER_TOOL_CACHE'], 'fingerprint.db');
return external_path_default().join(process.env['RUNNER_TOOL_CACHE'], 'fingerprint-storage', 'fingerprint.db');
}

;// CONCATENATED MODULE: ./src/actions/fingerprint.ts
Expand Down
3 changes: 3 additions & 0 deletions src/actions/fingerprint-post.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { info } from '@actions/core';

import { collectFingerprintActionInput, saveDbToCacheAsync } from '../fingerprint';
import { executeAction } from '../worker';

executeAction(runAction);

export async function runAction(input = collectFingerprintActionInput()) {
console.log('ooxx0');
info(`Saving fingerprint database to cache: ${input.fingerprintDbCacheKey}`);
await saveDbToCacheAsync(input.fingerprintDbCacheKey);
console.log('ooxx1');
}
2 changes: 1 addition & 1 deletion src/fingerprint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ export function saveDbToCacheAsync(cacheKey: string) {
*/
function getDbPath(): string {
assert(process.env['RUNNER_TOOL_CACHE'], 'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined');
return path.join(process.env['RUNNER_TOOL_CACHE'], 'fingerprint.db');
return path.join(process.env['RUNNER_TOOL_CACHE'], 'fingerprint-storage', 'fingerprint.db');
}

0 comments on commit 28f0c97

Please sign in to comment.