mirror of
https://github.com/actions/github-script.git
synced 2026-01-12 01:15:08 +00:00
Merge pull request #67 from j-ulrich/j-ulrich-absolute-path-note
Adds note that absolute path is required
This commit is contained in:
@@ -203,6 +203,8 @@ jobs:
|
|||||||
console.log(require(scriptPath)({context}))
|
console.log(require(scriptPath)({context}))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
*Note that the script path given to `require()` must be an absolute path in this case, hence the call to `path.resolve()`.*
|
||||||
|
|
||||||
And then export a function from your module:
|
And then export a function from your module:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
|||||||
Reference in New Issue
Block a user