[CI] test committed

This commit is contained in:
peter-evans 2024-09-18 17:30:57 +00:00 committed by github-actions[bot]
parent 2f38cd26bf
commit 4b1a75ea34
2 changed files with 8 additions and 1 deletions

8
dist/index.js vendored
View file

@ -1781,7 +1781,13 @@ function readFile(path) {
return fs.readFileSync(path, 'utf-8');
}
function readFileBase64(pathParts) {
return fs.readFileSync(path.resolve(...pathParts)).toString('base64');
const resolvedPath = path.resolve(...pathParts);
if (fs.lstatSync(resolvedPath).isSymbolicLink()) {
return fs
.readlinkSync(resolvedPath, { encoding: 'buffer' })
.toString('base64');
}
return fs.readFileSync(resolvedPath).toString('base64');
}
/* eslint-disable @typescript-eslint/no-explicit-any */
function hasErrorCode(error) {

1
report.txt Normal file
View file

@ -0,0 +1 @@
1726680656