This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-07-27 10:36:16 +02:00
parent 31f68609b1
commit 0802eed93e
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
2 changed files with 7 additions and 28 deletions

View file

@ -25,33 +25,12 @@ runs:
list-files: shell
filters: |
addedOrModified:
- added|modified: 'charts/*/**'
# - name: Collect changed charts
# if: |
# steps.filter.outputs.addedOrModified == 'true'
# id: filter-charts
# shell: bash
# run: |
# CHARTS=()
# PATHS=(${{ steps.filter.outputs.addedOrModified_files }})
# # Get only the chart paths
# for CHARTPATH in "${PATHS[@]}"
# do
# IFS='/' read -r -a path_parts <<< "${CHARTPATH}"
# CHARTS+=("${path_parts[1]}/${path_parts[2]}")
# done
# # Remove duplicates
# CHARTS=( `printf "%s\n" "${CHARTS[@]}" | sort -u` )
# # Set output to changed charts
# printf "::set-output name=addedOrModifiedCharts::%s\n" "${CHARTS[*]}"
- added|modified: '**'
- name: Collect changed charts
id: changed-charts
shell: bash
run: |
ct list-changed --config .ci/ct/ct-lint.yaml
CHARTS=$(ct list-changed --config .ci/ct/ct-lint.yaml)
# Set output to changed charts
printf "::set-output name=addedOrModifiedCharts::%s\n" "${CHARTS[*]}"