Fix validation workflows for self-hosted runner
validate / yaml (push) Failing after 15s
validate / k8s (push) Successful in 9s

This commit is contained in:
2026-06-21 21:35:51 +02:00
parent 6363d050b0
commit 175cbc8860
3 changed files with 12 additions and 51 deletions
+6 -6
View File
@@ -14,14 +14,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install yamllint
run: python -m pip install --disable-pip-version-check --no-cache-dir yamllint
- name: Lint YAML syntax
shell: bash
run: |
git ls-files -z '*.yml' '*.yaml' \
| xargs -0 -r yamllint -c .yamllint
docker run --rm \
-v "$PWD:/work" \
-w /work \
cytopia/yamllint:latest \
yamllint -c .yamllint .
k8s:
runs-on: [self-hosted, linux, arch, homelab]
@@ -33,7 +33,7 @@ jobs:
shell: bash
run: |
mapfile -t manifests < <(
git ls-files '*k8s/*.yaml' '*k8s/*.yml' \
git ls-files ':(glob)**/k8s/**/*.yaml' ':(glob)**/k8s/**/*.yml' \
| grep -Ev '(^|/)(kustomization\.ya?ml|.*\.example\.ya?ml|.*values\.ya?ml|patch-.*\.ya?ml)$'
)