File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,17 @@ The linter results can be exported to JSON using the ``--format`` option:
33
33
$ php bin/console lint:yaml translations/ --format=json
34
34
$ php bin/console lint:xliff translations/ --format=json
35
35
36
+ When running the YAML linter inside `GitHub Actions `_, the output is automatically
37
+ adapted to the format required by GitHub, but you can force that format too:
38
+
39
+ .. code-block :: terminal
40
+
41
+ $ php bin/console lint:yaml translations/ --format=github
42
+
43
+ .. versionadded :: 5.3
44
+
45
+ The ``github `` output format was introduced in Symfony 5.3.
46
+
36
47
.. tip ::
37
48
38
49
The Yaml component provides a stand-alone ``yaml-lint `` binary allowing
@@ -45,3 +56,5 @@ The linter results can be exported to JSON using the ``--format`` option:
45
56
.. versionadded :: 5.1
46
57
47
58
The ``yaml-lint `` binary was introduced in Symfony 5.1.
59
+
60
+ .. _`GitHub Actions` : https://docs.github.com/en/free-pro-team@latest/actions
You can’t perform that action at this time.
0 commit comments