Update action.yaml
This commit is contained in:
@@ -65,7 +65,6 @@ runs:
|
|||||||
|
|
||||||
filter_charts() {
|
filter_charts() {
|
||||||
while read -r chart; do
|
while read -r chart; do
|
||||||
echo "test ${chart}"
|
|
||||||
[[ ! -d "$chart" ]] && continue
|
[[ ! -d "$chart" ]] && continue
|
||||||
if [[ $(git diff $latest_tag $chart/Chart.yaml | grep "+version") ]]; then
|
if [[ $(git diff $latest_tag $chart/Chart.yaml | grep "+version") ]]; then
|
||||||
echo "$chart"
|
echo "$chart"
|
||||||
@@ -81,7 +80,7 @@ runs:
|
|||||||
|
|
||||||
local changed_files
|
local changed_files
|
||||||
changed_files=$(git diff --find-renames --name-only "$commit" -- 'charts/**' | grep "Chart.yaml")
|
changed_files=$(git diff --find-renames --name-only "$commit" -- 'charts/**' | grep "Chart.yaml")
|
||||||
|
echo "changed files: ${changed_files}"
|
||||||
local depth=$(( $(tr "/" "\n" <<< 'charts/**' | sed '/^\(\.\)*$/d' | wc -l) + 1 ))
|
local depth=$(( $(tr "/" "\n" <<< 'charts/**' | sed '/^\(\.\)*$/d' | wc -l) + 1 ))
|
||||||
local fields="1-${depth}"
|
local fields="1-${depth}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user