Skip to content

Commit 243bf25

Browse files
committed
directly use container with JSON Schema validator ajv
1 parent b39bbf5 commit 243bf25

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/validate-yaml.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,14 @@ jobs:
1010
validate-yaml:
1111
name: Validate Helm Chart
1212
runs-on: ubuntu-latest
13+
container:
14+
image: weibeld/ajv-cli:5.0.0
1315
steps:
1416
- name: Checkout
1517
uses: actions/checkout@v2
1618
with:
1719
fetch-depth: 0
1820

19-
- name: collect Chart.yamls
20-
run: |
21-
{
22-
echo 'YAML_CHARTS<<EOF'
23-
find charts -name Chart.yaml
24-
echo EOF
25-
} >> "$GITHUB_ENV"
26-
2721
- name: validate all Chart.yaml
28-
uses: RomanosTrechlis/actions-validate-yaml@v1.0
29-
with:
30-
schema: chart-schema.json
31-
data: ${{ env.YAML_CHARTS }}
22+
run: |
23+
find charts -name Chart.yaml --exec ajv --spec draft2020 -c ajv-formats -s chart-schema.json -d {} \;

0 commit comments

Comments
 (0)