Don't bump on houskeeping

This commit is contained in:
kjeld Schouten-Lebbing 2021-09-08 10:19:01 +02:00
parent 96d4d90ade
commit c50c63df77
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
1 changed files with 0 additions and 40 deletions

View File

@ -116,43 +116,6 @@ jobs:
continue-on-error: true
uses: pre-commit/action@v2.0.3
- uses: dorny/paths-filter@v2
id: filter
with:
list-files: json
base: HEAD
filters: |
changed:
- 'charts/stable/**'
- 'charts/incubator/**'
- 'charts/library/**'
- name: Filter filter-output
run: echo '${{ toJson(steps.filter.outputs) }}' > changes.json
- name: Bump
run: |
APPS=$(jq --raw-output '.changed_files | fromjson | .[] |= sub("(?<filepath>(?<first_directory>(?<root1>[\/]?)[^\/]+\/)(?<second_directory>(?<root2>[\/]?)[^\/]+\/)(?<third_directory>(?<root3>[\/]?)[^\/]+)(?<extra_paths>.+))"; "\(.third_directory)") | unique' changes.json | jq -r '.[]')
echo "changed apps: ${APPS[*]}"
for chart in ${APPS[*]}
do
if test -f "./charts/incubator/${chart}/Chart.yaml"; then
train="incubator"
elif [[ "${chart}" == '.gitkee' ]]; then
echo "Skipping..."
return
elif test -f "./charts/stable/${chart}/Chart.yaml"; then
train="stable"
elif test -f "./charts/library/${chart}/Chart.yaml"; then
train="library"
else
train="incubator"
fi
echo "Comparing versions for ${train}/${chart}"
echo "Bumping patch version for ${train}/${chart}"
pybump bump --file ./charts/${train}/${chart}/Chart.yaml --level patch
done
- name: Copy general readme to website
run: |
yes | cp -rf index.yaml docs/index.yaml || echo "chart-index copy failed, continuing..."
@ -189,9 +152,6 @@ jobs:
yes | cp -rf charts/library/common/README.md docs/apps/common/index.md || echo "common readme copy failed, continuing..."
yes | cp -rf charts/library/common/helm-values.md docs/apps/common/helm-values.md || echo "common readme copy failed, continuing..."
- name: Cleanup
run: |
rm -rf changes.json
- name: Commit and Push Housekeeping
run: |