mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 16:16:21 +00:00
Merge pull request #190 from patrick91/patch-1
Make it clear that require is a custom wrapper
This commit is contained in:
@@ -304,7 +304,10 @@ module.exports = async ({github, context, core}) => {
|
|||||||
|
|
||||||
### Use npm packages
|
### Use npm packages
|
||||||
|
|
||||||
Like importing your own files above, you can also use installed modules:
|
Like importing your own files above, you can also use installed modules.
|
||||||
|
Note that this is achieved with a wrapper on top `require`, so if you're
|
||||||
|
trying to require a module inside your own file, you might need to import
|
||||||
|
it externally or pass the `require` wrapper to your file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on: push
|
on: push
|
||||||
|
|||||||
Reference in New Issue
Block a user