Skip to content

Commit 81d7957

Browse files
authored
Add yaml linting via reviewdog (#4)
https://github.com/reviewdog/action-yamllint https://github.com/adrienverge/yamllint * Fix yaml linting errors
1 parent 0fdf141 commit 81d7957

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.github/workflows/github_tag_and_release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
---
12
name: Tag
23

3-
on:
4+
on: # yamllint disable-line rule:truthy
45
pull_request:
5-
types:
6+
types:
67
- closed
78

89
jobs:
@@ -11,7 +12,7 @@ jobs:
1112
name: Tag semantic version
1213
runs-on: ubuntu-latest
1314
steps:
14-
- name: Tag
15+
- name: Tag
1516
uses: K-Phoen/[email protected]
1617
with:
1718
release_branch: main

.github/workflows/reviewdog.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: reviewdog
3-
on:
3+
on: # yamllint disable-line rule:truthy
44
push:
55

66
jobs:
@@ -16,3 +16,14 @@ jobs:
1616
with:
1717
github_token: ${{ secrets.github_token }}
1818
reporter: github-check
19+
20+
yamllint:
21+
name: runner / yamllint
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v1
25+
- name: yamllint
26+
uses: reviewdog/action-yamllint@v1
27+
with:
28+
github_token: ${{ secrets.github_token }}
29+
reporter: github-check

action.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
---
12
name: 'Container Action Template'
23
description: 'Get started with Container actions'
34
author: 'GitHub'
4-
inputs:
5+
inputs:
56
myInput:
67
description: 'Input to use'
78
default: 'world'

0 commit comments

Comments
 (0)