Skip to content

Commit c0a6ce2

Browse files
committed
revert to use with RomanosTrechlis/actions-validate-yaml
1 parent 33da682 commit c0a6ce2

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/validate-yaml.yml

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

21-
- name: validate all Chart.yaml
19+
- name: collect Chart.yamls
2220
run: |
23-
find charts -name Chart.yaml -exec ajv --spec draft2020 -c ajv-formats -s chart-schema.json -d {} \;
21+
{
22+
echo 'YAML_CHARTS<<EOF'
23+
find charts -name Chart.yaml
24+
echo EOF
25+
} >> "$GITHUB_ENV"
26+
27+
- 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 }}

0 commit comments

Comments
 (0)