File tree 1 file changed +7
-14
lines changed 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -22,29 +22,22 @@ Integration with GitHub Actions
22
22
-------------------------------
23
23
24
24
yamllint auto-detects when it's running inside of `GitHub
25
- Actions <https://github.com/features/actions> `_ and automatically uses the suited
26
- output format to decorate code with linting errors. You can also force the
27
- GitHub Actions output with ``yamllint --format github ``.
25
+ Actions <https://github.com/features/actions> `_ and automatically uses the
26
+ suited output format to decorate code with linting errors. You can also force
27
+ the GitHub Actions output with ``yamllint --format github ``.
28
28
29
- An example workflow using GitHub Actions:
29
+ An minimal example workflow using GitHub Actions:
30
30
31
31
.. code :: yaml
32
32
33
33
---
34
- name : yamllint test
35
-
36
- on : push
34
+ on : push # yamllint disable-line rule:truthy
37
35
38
36
jobs :
39
- test :
37
+ lint :
40
38
runs-on : ubuntu-latest
41
39
steps :
42
- - uses : actions/checkout@v2
43
-
44
- - name : Set up Python
45
- uses : actions/setup-python@v2
46
- with :
47
- python-version : 3.8
40
+ - uses : actions/checkout@v3
48
41
49
42
- name : Install yamllint
50
43
run : pip install yamllint
You can’t perform that action at this time.
0 commit comments