Skip to content

Commit c84589e

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

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
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/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)