Skip to content

Commit 081edaf

Browse files
committed
use node16 in the outdated runner checks example
1 parent e03db88 commit 081edaf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/checks.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,7 +2793,7 @@ branding:
27932793
27942794
runs:
27952795
# ERROR: Node.js runtime version is too old
2796-
using: 'node14'
2796+
using: 'node16'
27972797
# ERROR: The source file being run by this action does not exist
27982798
main: 'this-file-does-not-exist.js'
27992799
# ERROR: 'env' configuration is only allowed for Docker actions
@@ -2818,27 +2818,27 @@ Output:
28182818
<!-- Skip update output -->
28192819

28202820
```
2821-
action_metadata_syntax_validation.yaml:8:15: description is required in metadata of "My action" action at "path/to/.github/actions/my-invalid-action/action.yml" [action]
2821+
test.yaml:8:15: description is required in metadata of "My action" action at "/Users/rhysd/.go/src/github.com/rhysd/actionlint/.github/actions/my-invalid-action/action.yml" [action]
28222822
|
28232823
8 | - uses: ./.github/actions/my-invalid-action
28242824
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2825-
action_metadata_syntax_validation.yaml:8:15: incorrect icon name "dog" at branding.icon in metadata of "My action" action at "path/to/.github/actions/my-invalid-action/action.yml". see the official document to know the exhaustive list of supported icons: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#brandingicon [action]
2825+
test.yaml:8:15: incorrect icon name "dog" at branding.icon in metadata of "My action" action at "/Users/rhysd/.go/src/github.com/rhysd/actionlint/.github/actions/my-invalid-action/action.yml". see the official document to know the exhaustive list of supported icons: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#brandingicon [action]
28262826
|
28272827
8 | - uses: ./.github/actions/my-invalid-action
28282828
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2829-
action_metadata_syntax_validation.yaml:8:15: incorrect color "black" at branding.icon in metadata of "My action" action at "path/to/.github/actions/my-invalid-action/action.yml". see the official document to know the exhaustive list of supported colors: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#brandingcolor [action]
2829+
test.yaml:8:15: incorrect color "black" at branding.icon in metadata of "My action" action at "/Users/rhysd/.go/src/github.com/rhysd/actionlint/.github/actions/my-invalid-action/action.yml". see the official document to know the exhaustive list of supported colors: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#brandingcolor [action]
28302830
|
28312831
8 | - uses: ./.github/actions/my-invalid-action
28322832
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2833-
action_metadata_syntax_validation.yaml:8:15: invalid runner name "node14" at runs.using in "My action" action defined at "path/to/.github/actions/my-invalid-action". valid runners are "composite", "docker", "node16", and "node20". see https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs [action]
2833+
test.yaml:8:15: invalid runner name "node16" at runs.using in "My action" action defined at "/Users/rhysd/.go/src/github.com/rhysd/actionlint/.github/actions/my-invalid-action". valid runners are "composite", "docker", and "node20". see https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs [action]
28342834
|
28352835
8 | - uses: ./.github/actions/my-invalid-action
28362836
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2837-
action_metadata_syntax_validation.yaml:8:15: file "this-file-does-not-exist.js" does not exist in "path/to/.github/actions/my-invalid-action". it is specified at "main" key in "runs" section in "My action" action [action]
2837+
test.yaml:8:15: file "this-file-does-not-exist.js" does not exist in "/Users/rhysd/.go/src/github.com/rhysd/actionlint/.github/actions/my-invalid-action". it is specified at "main" key in "runs" section in "My action" action [action]
28382838
|
28392839
8 | - uses: ./.github/actions/my-invalid-action
28402840
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2841-
action_metadata_syntax_validation.yaml:8:15: "env" is not allowed in "runs" section because "My action" is a JavaScript action. the action is defined at "path/to/.github/actions/my-invalid-action" [action]
2841+
test.yaml:8:15: "env" is not allowed in "runs" section because "My action" is a JavaScript action. the action is defined at "/Users/rhysd/.go/src/github.com/rhysd/actionlint/.github/actions/my-invalid-action" [action]
28422842
|
28432843
8 | - uses: ./.github/actions/my-invalid-action
28442844
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -2851,7 +2851,7 @@ All actions require a metadata file `action.yml` or `action.yaml`. The syntax is
28512851
actionlint checks metadata files used in workflows and reports errors when they are not following the syntax.
28522852
28532853
- `name:`, `description:`, `runs:` sections are required
2854-
- Runner name at `using:` is one of `composite`, `docker`, `node16`, `node20`
2854+
- Runner name at `using:` is one of `composite`, `docker`, `node20`
28552855
- Keys under `runs:` section are correct. Required/Valid keys are different depending on the type of action; Docker action or
28562856
Composite action or JavaScript action (e.g. `image:` is required for Docker action).
28572857
- Files specified in some keys under `runs` are existing. For example, JavaScript action defines a script file path for

0 commit comments

Comments
 (0)