Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c857fcb

Browse filesBrowse files
authored
Update alternative-setup.md
1 parent ba13a89 commit c857fcb
Copy full SHA for c857fcb

File tree

1 file changed

+5
-5
lines changed
Filter options

1 file changed

+5
-5
lines changed

‎docs/alternative-setup.md

Copy file name to clipboardExpand all lines: docs/alternative-setup.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ root # Your repository
1313
├── ...
1414
├── actions
1515
│ ├── action.yml (optional)
16-
│ └── ci-test.js
16+
│ └── ci-test.mjs
1717
├── ...
1818
└── package.json
1919
```
@@ -57,7 +57,7 @@ jobs:
5757
github-token: ${{ secrets.GITHUB_TOKEN }}
5858
result-encoding: string
5959
script: |
60-
const { default: script } = await import('${{ github.workspace }}/actions/ci-test.js');
60+
const { default: script } = await import('${{ github.workspace }}/actions/ci-test.mjs');
6161
return await script({ github, context, core, exec, glob, io, fetch, __original_require__ });
6262
```
6363
@@ -76,7 +76,7 @@ branding:
7676
icon: code
7777
inputs:
7878
script:
79-
description: The path to script (e.g actions/ci-test.js)
79+
description: The path to script (e.g actions/ci-test.mjs)
8080
required: true
8181
github-token:
8282
description: The GitHub token used to create an authenticated client
@@ -125,7 +125,7 @@ runs:
125125
126126
127127
### The `ci-workflow.yml` file
128-
Note that we only need to specify the script here because the path will be
128+
Note that we only need to specify the script name here because the path will be
129129
resolved to the `uses: ./actions` path by `process.env.GITHUB_ACTION_PATH`.
130130
i.e the same folder as we are executing the action from.
131131
```yml
@@ -149,6 +149,6 @@ jobs:
149149
with:
150150
github-token: ${{ secrets.GITHUB_TOKEN }}
151151
result-encoding: string
152-
script: ci-test.js
152+
script: ci-test.mjs
153153
```
154154

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.