mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-23 10:09:33 +01:00
Merge pull request #6 from ibiqlik/fixver
Autotag releases, use Dockerfile (for now) #5
This commit is contained in:
commit
665205c325
5 changed files with 21 additions and 6 deletions
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
* text=auto
|
||||
*.sh text eol=lf
|
13
.github/workflows/release.yml
vendored
Normal file
13
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
name: Update Semver
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- '**'
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
jobs:
|
||||
update-semver:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: haya14busa/action-update-semver@v1
|
|
@ -1,7 +1,7 @@
|
|||
FROM python:3-alpine
|
||||
|
||||
RUN pip install yamllint && \
|
||||
apk add bash && \
|
||||
apk add --no-cache bash && \
|
||||
rm -rf ~/.cache/pip
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
|
|
|
@ -13,7 +13,7 @@ This action executes `yamllint` (https://github.com/adrienverge/yamllint) agains
|
|||
- `file1.yaml`
|
||||
- `file1.yaml file2.yaml`
|
||||
- `kustomize/**/*.yaml mychart/*values.yaml`
|
||||
- `format` - Format for parsing output [parsable,standard,colored,auto]
|
||||
- `format` - Format for parsing output [parsable,standard,colored,auto] (default: colored)
|
||||
- `strict` - Return non-zero exit code on warnings as well as errors [true,false]
|
||||
|
||||
### Example usage in workflow
|
||||
|
@ -27,7 +27,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: yaml-lint
|
||||
uses: ibiqlik/action-yamllint@master
|
||||
uses: ibiqlik/action-yamllint@v1
|
||||
with:
|
||||
file_or_dir: myfolder/*values*.yaml
|
||||
config_file: .yamllint.yml
|
||||
|
@ -42,7 +42,7 @@ jobs:
|
|||
lintAllTheThings:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/checkout@v1
|
||||
- name: yaml-lint
|
||||
uses: ibiqlik/action-yamllint@master
|
||||
```
|
||||
|
|
|
@ -15,7 +15,7 @@ inputs:
|
|||
format:
|
||||
description: 'Format for parsing output [parsable,standard,colored,auto]'
|
||||
required: false
|
||||
default: "auto"
|
||||
default: "colored"
|
||||
strict:
|
||||
description: 'Return non-zero exit code on warnings as well as errors'
|
||||
required: false
|
||||
|
@ -23,7 +23,7 @@ inputs:
|
|||
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'docker://ilirbekteshi/action-yamllint'
|
||||
image: 'Dockerfile'
|
||||
args:
|
||||
- ${{ inputs.file_or_dir }}
|
||||
- ${{ inputs.config_file }}
|
||||
|
|
Loading…
Reference in a new issue