Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c19d6ba

Browse filesBrowse 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
Copy full SHA for c19d6ba

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.