Skip to content

Commit 9fe617f

Browse files
committed
fix typos in document, tests, and file names
1 parent e10484a commit 9fe617f

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

docs/checks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2846,7 +2846,7 @@ action_metadata_syntax_validation.yaml:8:15: "env" is not allowed in "runs" sect
28462846
28472847
<!-- Skip playground link -->
28482848
2849-
All actions require a metadata file `action.yml` or `aciton.yaml`. The syntax is defined in [the official document][action-metadata-doc].
2849+
All actions require a metadata file `action.yml` or `action.yaml`. The syntax is defined in [the official document][action-metadata-doc].
28502850
28512851
actionlint checks metadata files used in workflows and reports errors when they are not following the syntax.
28522852

scripts/check-checks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ rule.
7575
The example input code block must not be empty and must contain at least one error.
7676

7777
When you don't want to update the output by this script, put the comment as follows. This script
78-
will ignore the code block. Instead you need to write the output in the code blcok manually.
78+
will ignore the code block. Instead you need to write the output in the code block manually.
7979

8080
```yaml
8181
Output:

scripts/check-checks/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func testErr(t *testing.T, err error, want ...string) {
3434
msg := err.Error()
3535
for _, w := range want {
3636
if !strings.Contains(msg, w) {
37-
t.Errorf("error message %q does not cotnain expected text %q", msg, w)
37+
t.Errorf("error message %q does not contain expected text %q", msg, w)
3838
}
3939
}
4040
}

testdata/examples/contexts_and_buitin_funcs.yaml renamed to testdata/examples/contexts_and_builtin_funcs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
# Function overloads can be handled properly. contains() has string version and array version
1717
- run: echo "${{ contains('hello, world', 'lo,') }}"
1818
- run: echo "${{ contains(github.event.labels.*.name, 'enhancement') }}"
19-
# format() has a special check for formating string
19+
# format() has a special check for formatting string
2020
- run: echo "${{ format('{0}{1}', 1, 2, 3) }}"

0 commit comments

Comments
 (0)