mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-23 18:19:33 +01:00
Make examples compliant #24
This commit is contained in:
parent
d5318587ea
commit
5802e0a5a8
1 changed files with 23 additions and 20 deletions
|
@ -34,8 +34,9 @@ Simple as:
|
||||||
### Example usage in workflow
|
### Example usage in workflow
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
---
|
||||||
name: Yaml Lint
|
name: Yaml Lint
|
||||||
on: [push]
|
on: [push] # yamllint disable-line rule:truthy
|
||||||
jobs:
|
jobs:
|
||||||
lintAllTheThings:
|
lintAllTheThings:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -51,8 +52,9 @@ jobs:
|
||||||
Or just simply check all yaml files in the repository:
|
Or just simply check all yaml files in the repository:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
---
|
||||||
name: Yaml Lint
|
name: Yaml Lint
|
||||||
on: [push]
|
on: [push] # yamllint disable-line rule:truthy
|
||||||
jobs:
|
jobs:
|
||||||
lintAllTheThings:
|
lintAllTheThings:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -83,8 +85,9 @@ config_data: |
|
||||||
Use output to save/upload the log in artifact. Note, you must have `id` in the step running the yamllint action.
|
Use output to save/upload the log in artifact. Note, you must have `id` in the step running the yamllint action.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
---
|
||||||
name: Yaml Lint
|
name: Yaml Lint
|
||||||
on: [push]
|
on: [push] # yamllint disable-line rule:truthy
|
||||||
jobs:
|
jobs:
|
||||||
lintAllTheThings:
|
lintAllTheThings:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue