@@ -7,6 +7,7 @@ This script does:
7
7
8
8
- update the outputs of the example inputs; the code blocks after ` Output: ` header
9
9
- update the links to the [ playground] ( https://rhysd.github.io/actionlint/ ) for the example inputs
10
+ - check the document is up-to-date
10
11
11
12
For making the implementation simple, this script does not support Windows.
12
13
@@ -39,7 +40,7 @@ The check is run on the [CI workflow](../../.github/workflows/ci.yaml).
39
40
40
41
## Format
41
42
42
- The format of the check document is:
43
+ The format of the section is:
43
44
44
45
```` markdown
45
46
<a id="some-id"></a>
@@ -48,20 +49,31 @@ The format of the check document is:
48
49
Example input:
49
50
50
51
```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
52
59
```
53
60
54
61
Output:
55
62
56
63
```
57
- This section will be auto-generated
64
+ THIS CODE BLOCK WILL BE AUTO-GENERATED
58
65
```
59
66
60
- [Playground](https://rhysd.github.io/actionlint/#THIS_HASH_PART_WILL_BE_AUTO_GENERATED )
67
+ [Playground](URL_WILL_BE_AUTO_GENERATED )
61
68
62
69
Explanation for the check...
63
70
````
64
71
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
+
65
77
When you don't want to update the output by this script, put the comment as follows. This script
66
78
will ignore the code block. Instead you need to write the output in the code blcok manually.
67
79
0 commit comments