mirror of
https://github.com/gradle/actions.git
synced 2026-02-04 15:14:28 +08:00
Test simpler resource path
This commit is contained in:
parent
49ec880f92
commit
434e3d08cb
@ -3,7 +3,7 @@ import fs from 'fs'
|
||||
|
||||
export function readResourceFileAsString(...paths: string[]): string {
|
||||
// Resolving relative to __dirname will allow node to find the resource at runtime
|
||||
const absolutePath = path.resolve(__dirname, '..', '..', '..', 'sources', 'src', 'resources', ...paths)
|
||||
const absolutePath = path.resolve(__dirname, '..', 'resources', ...paths)
|
||||
return fs.readFileSync(absolutePath, 'utf8')
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user