Skip to content

Commit c19d6ba

Browse files
authored
Adds note that absolute path is required
An absolute path is required when calling `require()` from within the github-script
1 parent 1ba1e95 commit c19d6ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ jobs:
202202
const scriptPath = path.resolve('./path/to/script.js')
203203
console.log(require(scriptPath)({context}))
204204
```
205+
_(Note that the script path given to `require()` must be an absolute path in this case.)_
205206

206207
And then export a function from your module:
207208

0 commit comments

Comments
 (0)