File tree 1 file changed +3
-3
lines changed 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.
147
147
# ## Run a separate file
148
148
149
149
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 :
151
151
152
152
` ` ` yaml
153
153
on: push
@@ -164,7 +164,7 @@ jobs:
164
164
console.log(require(scriptPath)({context}))
165
165
` ` `
166
166
167
- And then export a function from your script :
167
+ And then export a function from your module :
168
168
169
169
` ` ` javascript
170
170
module.exports = ({context}) => {
@@ -177,7 +177,7 @@ the inline script.
177
177
178
178
Note that because you can't `require` things like the GitHub context or
179
179
Actions Toolkit libraries, you'll want to pass them as arguments to your
180
- external script .
180
+ external function .
181
181
182
182
# ## Result encoding
183
183
You can’t perform that action at this time.
0 commit comments