Add dev train and excluded common-test chart.lock (#318)

This commit is contained in:
Kjeld Schouten-Lebbing
2021-04-10 15:05:29 +02:00
committed by GitHub
parent 6342bdc292
commit 64aa712dab
16 changed files with 96 additions and 4 deletions
+11 -1
View File
@@ -21,6 +21,13 @@ on:
- '!incubator/**/app-readme.md'
- '!incubator/**/app-readme.md.gotmpl'
- '!incubator/**/docs/*'
- 'dev/**'
- '!dev/**/*.md'
- '!dev/**/README.md'
- '!dev/**/README.md.gotmpl'
- '!dev/**/app-readme.md'
- '!dev/**/app-readme.md.gotmpl'
- '!dev/**/docs/*'
- '.github/workflows/apps.test.yaml'
- '.github/ct-install.yaml'
- '.github/ct-lint.yaml'
@@ -54,6 +61,7 @@ jobs:
changed:
- 'stable/**'
- 'incubator/**'
- 'dev/**'
- run: echo '${{ toJson(steps.filter.outputs) }}' > changes.json
- id: reduce
run: |
@@ -78,8 +86,10 @@ jobs:
run: |
if test -f "./stable/${{ matrix.app }}/item.yaml"; then
train="stable"
else
elif test -f "./incubator/${{ matrix.app }}/item.yaml"; then
train="incubator"
else
train="dev"
fi
echo ::set-output name=train::${train}
maxfolderversion=$(ls -l ${train}/${{ matrix.app }} | grep ^d | awk '{print $9}' | tail -n 1)
+16
View File
@@ -42,6 +42,7 @@ jobs:
fi
fi
done
- name: update folder names and dependencies for incubator
run: |
for chart in incubator/*; do
@@ -58,6 +59,21 @@ jobs:
fi
done
- name: update folder names and dependencies for incubator
run: |
for chart in dev/*; do
if [ -d "${chart}" ]; then
maxfolderversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1)
maxchartversion=$(cat ${chart}/${maxfolderversion}/Chart.yaml | grep "^version: " | awk -F" " '{ print $2 }')
chartname=$(basename ${chart})
echo "Processing: ${chart} - folder: ${maxfolderversion} - version: ${maxchartversion}"
helm dependency update ${chart}/${maxfolderversion}
if [ "${maxfolderversion}" != "${maxchartversion}" ]; then
mv -f ${chart}/${maxfolderversion} ${chart}/${maxchartversion}
echo "renamed ${chart}/${maxfolderversion} to ${chart}/${maxchartversion}"
fi
fi
done
- name: Commit and push updated charts
run: |