mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37: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
|
list-files: shell
|
||||||
filters: |
|
filters: |
|
||||||
addedOrModified:
|
addedOrModified:
|
||||||
- added|modified: 'charts/*/**'
|
- added|modified: '**'
|
||||||
|
|
||||||
# - 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[*]}"
|
|
||||||
|
|
||||||
- name: Collect changed charts
|
- name: Collect changed charts
|
||||||
id: changed-charts
|
id: changed-charts
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
ct list-changed --config .ci/ct/ct-lint.yaml
|
|
||||||
CHARTS=$(ct list-changed --config .ci/ct/ct-lint.yaml)
|
CHARTS=$(ct list-changed --config .ci/ct/ct-lint.yaml)
|
||||||
# Set output to changed charts
|
# Set output to changed charts
|
||||||
printf "::set-output name=addedOrModifiedCharts::%s\n" "${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:
|
pr-metadata:
|
||||||
uses: bjw-s/helm-charts/.github/workflows/pr-metadata.yaml@main
|
uses: bjw-s/helm-charts/.github/workflows/pr-metadata.yaml@main
|
||||||
|
|
||||||
# pre-commit-check:
|
pre-commit-check:
|
||||||
# uses: bjw-s/helm-charts/.github/workflows/pre-commit-check.yaml@main
|
uses: bjw-s/helm-charts/.github/workflows/pre-commit-check.yaml@main
|
||||||
# needs:
|
needs:
|
||||||
# - pr-metadata
|
- pr-metadata
|
||||||
# with:
|
with:
|
||||||
# modifiedFiles: ${{ needs.pr-metadata.outputs.addedOrModifiedFiles }}
|
modifiedFiles: ${{ needs.pr-metadata.outputs.addedOrModifiedFiles }}
|
||||||
|
|
||||||
# charts-changelog:
|
# charts-changelog:
|
||||||
# uses: bjw-s/helm-charts/.github/workflows/charts-changelog.yaml@main
|
# uses: bjw-s/helm-charts/.github/workflows/charts-changelog.yaml@main
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue