Skip to content

Commit 81e5966

Browse files
add logging
1 parent dffc020 commit 81e5966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ try {
99
const jsonPackageFile = JSON.parse(fs.readFileSync(path.resolve(process.env.GITHUB_WORKSPACE, packagePath || 'package.json')))
1010
const regexp = new RegExp(`"name":"${jsonPackageFile.name}","version":".*?",`, 'g')
1111
const jsonLockFile = fs.readFileSync(path.resolve(process.env.GITHUB_WORKSPACE, lockPath || 'package-lock.json')).toString(('utf-8')).replace(/\n|\s|\r|\t/g, '').replace(regexp, '')
12-
12+
console.log(jsonLockFile.slice(0, 250))
1313
core.setOutput('cacheKey', crypto.createHash('sha256').update(jsonLockFile, 'utf8').digest('hex'));
1414
} catch (error) {
1515
core.setFailed(error.message);

0 commit comments

Comments
 (0)