mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
ci: 🧠
This commit is contained in:
parent
31f68609b1
commit
0802eed93e
2 changed files with 7 additions and 28 deletions
23
.github/actions/collect-changes/action.yaml
vendored
23
.github/actions/collect-changes/action.yaml
vendored
|
@ -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[*]}"
|
||||
|
|
12
.github/workflows/pr-validate.yaml
vendored
12
.github/workflows/pr-validate.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue