Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07ecbc5

Browse files
authored
Update README.md
1 parent a656f43 commit 07ecbc5

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
@@ -198,11 +198,11 @@ jobs:
198198
- uses: actions/github-script@v2
199199
with:
200200
script: |
201-
const script = require(`${process.env.GITHUB_WORKSPACE}/.path/to/script.js`)
202-
console.log(script(github, context))
201+
const script = require(`${process.env.GITHUB_WORKSPACE}/path/to/script.js`)
202+
console.log(script({github, context}))
203203
```
204204

205-
*Note that the script path given to `require()` must be an **absolute path** in this case, hence using [`GITHUB_WORKSPACE`](https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables)*
205+
*Note that the script path given to `require()` must be an **absolute path** in this case, hence using [`GITHUB_WORKSPACE`](https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables).*
206206

207207
And then export a function from your module:
208208

0 commit comments

Comments
 (0)