Merge pull request #6 from ibiqlik/fixver

Autotag releases, use Dockerfile (for now) #5
This commit is contained in:
Ilir Bekteshi 2020-02-28 10:20:44 +01:00 committed by GitHub
commit 665205c325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 6 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
* text=auto
*.sh text eol=lf

13
.github/workflows/release.yml vendored Normal file
View 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

View file

@ -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

View file

@ -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
```

View file

@ -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 }}