Skip to content

Commit d89db5b

Browse files
committed
s/script/module
1 parent 52110c5 commit d89db5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ contain the actual diff text.
147147
### Run a separate file
148148

149149
If you don't want to inline your entire script that you want to run, you can
150-
use a separate JavaScript file in your repository like so:
150+
use a separate JavaScript module in your repository like so:
151151

152152
```yaml
153153
on: push
@@ -164,7 +164,7 @@ jobs:
164164
console.log(require(scriptPath)({context}))
165165
```
166166

167-
And then export a function from your script:
167+
And then export a function from your module:
168168

169169
```javascript
170170
module.exports = ({context}) => {
@@ -177,7 +177,7 @@ the inline script.
177177

178178
Note that because you can't `require` things like the GitHub context or
179179
Actions Toolkit libraries, you'll want to pass them as arguments to your
180-
external script.
180+
external function.
181181

182182
### Result encoding
183183

0 commit comments

Comments
 (0)