Skip to content

Commit

Permalink
fix typos in document, tests, and file names
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Oct 26, 2024
1 parent e10484a commit 9fe617f
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -2846,7 +2846,7 @@ action_metadata_syntax_validation.yaml:8:15: "env" is not allowed in "runs" sect
<!-- Skip playground link -->
All actions require a metadata file `action.yml` or `aciton.yaml`. The syntax is defined in [the official document][action-metadata-doc].
All actions require a metadata file `action.yml` or `action.yaml`. The syntax is defined in [the official document][action-metadata-doc].
actionlint checks metadata files used in workflows and reports errors when they are not following the syntax.
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-checks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ rule.
The example input code block must not be empty and must contain at least one error.

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

```yaml
Output:
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-checks/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func testErr(t *testing.T, err error, want ...string) {
msg := err.Error()
for _, w := range want {
if !strings.Contains(msg, w) {
t.Errorf("error message %q does not cotnain expected text %q", msg, w)
t.Errorf("error message %q does not contain expected text %q", msg, w)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
# Function overloads can be handled properly. contains() has string version and array version
- run: echo "${{ contains('hello, world', 'lo,') }}"
- run: echo "${{ contains(github.event.labels.*.name, 'enhancement') }}"
# format() has a special check for formating string
# format() has a special check for formatting string
- run: echo "${{ format('{0}{1}', 1, 2, 3) }}"

0 comments on commit 9fe617f

Please sign in to comment.