Skip to content

Commit 6a56410

Browse files
committed
Merge branch 'refactor-state-machine'
2 parents 2aeff42 + 8ae340a commit 6a56410

31 files changed

+777
-187
lines changed

scripts/update-checks-doc/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This script does:
77

88
- update the outputs of the example inputs; the code blocks after `Output:` header
99
- update the links to the [playground](https://rhysd.github.io/actionlint/) for the example inputs
10+
- check the document is up-to-date
1011

1112
For making the implementation simple, this script does not support Windows.
1213

@@ -39,7 +40,7 @@ The check is run on the [CI workflow](../../.github/workflows/ci.yaml).
3940

4041
## Format
4142

42-
The format of the check document is:
43+
The format of the section is:
4344

4445
````markdown
4546
<a id="some-id"></a>
@@ -48,20 +49,31 @@ The format of the check document is:
4849
Example input:
4950

5051
```yaml
51-
This section is referred to generate the output and the playground link
52+
# This section is referred to generate the output and the playground link
53+
on: push
54+
jobs:
55+
test:
56+
runs-on: linux-latest # oops
57+
steps:
58+
- run: echo hello
5259
```
5360

5461
Output:
5562

5663
```
57-
This section will be auto-generated
64+
THIS CODE BLOCK WILL BE AUTO-GENERATED
5865
```
5966

60-
[Playground](https://rhysd.github.io/actionlint/#THIS_HASH_PART_WILL_BE_AUTO_GENERATED)
67+
[Playground](URL_WILL_BE_AUTO_GENERATED)
6168

6269
Explanation for the check...
6370
````
6471

72+
Multiple examples within a section are allowed. You can show multiple examples to explain one check
73+
rule.
74+
75+
The example input code block must not be empty and must contain at least one error.
76+
6577
When you don't want to update the output by this script, put the comment as follows. This script
6678
will ignore the code block. Instead you need to write the output in the code blcok manually.
6779

0 commit comments

Comments
 (0)