mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-18 13:29:14 +02:00
Update lint-checks.yaml
This commit is contained in:
19
.github/workflows/lint-checks.yaml
vendored
19
.github/workflows/lint-checks.yaml
vendored
@@ -8,22 +8,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
hadolint:
|
hadolint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/hadolint/hadolint:latest-alpine
|
|
||||||
steps:
|
steps:
|
||||||
- name: ↩️ Checkout
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v2
|
- uses: hadolint/hadolint-action@v1.6.0
|
||||||
|
with:
|
||||||
- name: 📂 Detect chanced files
|
dockerfile: Dockerfile
|
||||||
id: filter
|
|
||||||
uses: dorny/paths-filter@v2.9.0
|
|
||||||
with:
|
|
||||||
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