Adds note that absolute path is required

An absolute path is required when calling `require()` from within the github-script
This commit is contained in:
Jochen Ulrich
2020-07-17 00:47:14 +02:00
committed by GitHub
parent 1ba1e95cf2
commit c19d6ba8b3

View File

@@ -202,6 +202,7 @@ jobs:
const scriptPath = path.resolve('./path/to/script.js')
console.log(require(scriptPath)({context}))
```
_(Note that the script path given to `require()` must be an absolute path in this case.)_
And then export a function from your module: