Skip to content

Commit 30a2ffb

Browse files
committed
Fixes file path
1 parent 534145a commit 30a2ffb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const getFileContent = async () => {
3737
return null
3838
}
3939

40-
const filePath = path.join(__dirname, `../.github/workflows/${file}`)
40+
const filePath = path.resolve(process.cwd(), `.github/workflows/${file}`)
4141
const content = await fs.readFile(filePath, 'utf8')
4242
if (!content) {
4343
return null

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const getFileContent = async () => {
2626
return null
2727
}
2828

29-
const filePath = path.join(__dirname, `../.github/workflows/${file}`)
29+
const filePath = path.resolve(process.cwd(), `.github/workflows/${file}`)
3030
const content = await fs.readFile(filePath, 'utf8')
3131
if (!content) {
3232
return null

0 commit comments

Comments
 (0)