From 0802eed93e3c290391698f3aa1e68a709f216bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=E1=B4=87=CA=80=C9=B4=E1=B4=85=20S=E1=B4=84=CA=9C?= =?UTF-8?q?=E1=B4=8F=CA=80=C9=A2=E1=B4=87=CA=80s?= Date: Wed, 27 Jul 2022 10:36:16 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=A7=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/collect-changes/action.yaml | 23 +-------------------- .github/workflows/pr-validate.yaml | 12 +++++------ 2 files changed, 7 insertions(+), 28 deletions(-) diff --git a/.github/actions/collect-changes/action.yaml b/.github/actions/collect-changes/action.yaml index 4781fa59..c32b94ed 100644 --- a/.github/actions/collect-changes/action.yaml +++ b/.github/actions/collect-changes/action.yaml @@ -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[*]}" diff --git a/.github/workflows/pr-validate.yaml b/.github/workflows/pr-validate.yaml index 0895c48a..4e4b449e 100644 --- a/.github/workflows/pr-validate.yaml +++ b/.github/workflows/pr-validate.yaml @@ -20,12 +20,12 @@ jobs: pr-metadata: uses: bjw-s/helm-charts/.github/workflows/pr-metadata.yaml@main - # pre-commit-check: - # uses: bjw-s/helm-charts/.github/workflows/pre-commit-check.yaml@main - # needs: - # - pr-metadata - # with: - # modifiedFiles: ${{ needs.pr-metadata.outputs.addedOrModifiedFiles }} + pre-commit-check: + uses: bjw-s/helm-charts/.github/workflows/pre-commit-check.yaml@main + needs: + - pr-metadata + with: + modifiedFiles: ${{ needs.pr-metadata.outputs.addedOrModifiedFiles }} # charts-changelog: # uses: bjw-s/helm-charts/.github/workflows/charts-changelog.yaml@main