-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.14 KB
/
this_linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
name: Lint files
# yamllint disable-line rule:truthy
on:
pull_request:
jobs:
default:
uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_linter_callable.yml@main
secrets: inherit
find-changes-for-shell-output:
runs-on: ubuntu-latest
steps:
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
with:
list-files: "shell"
filters: |
yaml:
- added|modified:
- '**/*.yaml'
- '**/*.yml'
outputs:
yaml: ${{ steps.changes.outputs.yaml }}
lint-yaml:
runs-on: ubuntu-latest
continue-on-error: true
needs: find-changes-for-shell-output
if: needs.find-changes-for-shell-output.outputs.yaml == 'true'
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: yaml-lint
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
with:
config_file: .config/yamllint.yml
file_or_dir: ${{ steps.filter-changes-for-shell-output.outputs.yaml_files }}
strict: true