-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check the YAML code in the repo with a linter
This check will comment right in the pull request on the lines which have style violations. Resolve a few found style violations. Configure yamllint to skip the 'truthy' check because otherwise it shows an error on completely fine line 4 in .github/workflows/yaml-lint.yml See the docs in https://yamllint.readthedocs.io/en/stable/index.html
- Loading branch information
1 parent
d20b22c
commit b8dd849
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: Lint YAML code | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '**' | ||
jobs: | ||
yamllint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: YAML Lint and Annotate | ||
uses: Staffbase/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
target-path: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
rules: | ||
truthy: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: 'Clean workspace' | ||
description: 'Clean workspace directory after previous workflow run' | ||
runs: | ||
|