From d89db5b6f4a2cca048ba4ec21f4f1be294301809 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Mon, 18 May 2020 12:41:53 -0400 Subject: [PATCH] s/script/module --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 67ba8c5..3e3fd17 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ contain the actual diff text. ### Run a separate file If you don't want to inline your entire script that you want to run, you can -use a separate JavaScript file in your repository like so: +use a separate JavaScript module in your repository like so: ```yaml on: push @@ -164,7 +164,7 @@ jobs: console.log(require(scriptPath)({context})) ``` -And then export a function from your script: +And then export a function from your module: ```javascript module.exports = ({context}) => { @@ -177,7 +177,7 @@ the inline script. Note that because you can't `require` things like the GitHub context or Actions Toolkit libraries, you'll want to pass them as arguments to your -external script. +external function. ### Result encoding