8000 Update README.md · avdim/github-script@62c8044 · GitHub
[go: up one dir, main page]

Skip to content

Commit 62c8044

Browse files
authored
Update README.md
1 parent c19d6ba commit 62c8044

File tree

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ 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.)_
205+
206+
*(Note that the script path given to `require()` must be an absolute path in this case, hence the call to `path.resolve()`.)*
206207

207208
And then export a function from your module:
208209