mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Update lint-checks.yaml
This commit is contained in:
20
.github/workflows/lint-checks.yaml
vendored
20
.github/workflows/lint-checks.yaml
vendored
@@ -7,13 +7,25 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
hadolint:
|
||||||
name: 🔎 Run hadolint
|
|
||||||
|
hadolint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/hadolint/hadolint:latest-alpine
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: ↩️ Checkout
|
||||||
- uses: hadolint/hadolint-action@v1.6.0
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: 📂 Detect chanced files
|
||||||
|
id: filter
|
||||||
|
uses: dorny/paths-filter@v2.9.0
|
||||||
with:
|
with:
|
||||||
dockerfile: Dockerfile
|
list-files: 'shell'
|
||||||
|
filters: |
|
||||||
|
dockerfile:
|
||||||
|
- 'Dockerfile'
|
||||||
|
- name: 🔎 Run hadolint
|
||||||
|
if: steps.filter.outputs.dockerfile == 'true'
|
||||||
|
run: hadolint ${{ steps.filter.outputs.dockerfile_files }}
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user