File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ contain the actual diff text.
147147# ## Run a separate file
148148
149149If 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
153153on: 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
170170module.exports = ({context}) => {
@@ -177,7 +177,7 @@ the inline script.
177177
178178Note that because you can't `require` things like the GitHub context or
179179Actions Toolkit libraries, you'll want to pass them as arguments to your
180- external script .
180+ external function .
181181
182182# ## Result encoding
183183
You can’t perform that action at this time.
0 commit comments