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
aa276bed33
commit
5e73a453e2
1 changed files with 6 additions and 6 deletions
12
.github/actions/collect-changes/action.yaml
vendored
12
.github/actions/collect-changes/action.yaml
vendored
|
@ -10,11 +10,14 @@ outputs:
|
||||||
value: ${{ steps.filter.outputs.addedOrModified_files }}
|
value: ${{ steps.filter.outputs.addedOrModified_files }}
|
||||||
addedOrModifiedCharts:
|
addedOrModifiedCharts:
|
||||||
description: "A list of the charts changed"
|
description: "A list of the charts changed"
|
||||||
value: ${{ steps.filter-charts.outputs.addedOrModifiedCharts }}
|
value: ${{ steps.changed-charts.outputs.addedOrModifiedCharts }}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set up chart-testing
|
||||||
|
uses: helm/chart-testing-action@v2.2.1
|
||||||
|
|
||||||
- name: Collect changed files
|
- name: Collect changed files
|
||||||
uses: dorny/paths-filter@v2
|
uses: dorny/paths-filter@v2
|
||||||
id: filter
|
id: filter
|
||||||
|
@ -22,7 +25,7 @@ runs:
|
||||||
list-files: shell
|
list-files: shell
|
||||||
filters: |
|
filters: |
|
||||||
addedOrModified:
|
addedOrModified:
|
||||||
- added|modified: 'charts/*/**'
|
- added|modified: 'src/charts/*/**'
|
||||||
|
|
||||||
# - name: Collect changed charts
|
# - name: Collect changed charts
|
||||||
# if: |
|
# if: |
|
||||||
|
@ -44,14 +47,11 @@ runs:
|
||||||
# # 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[*]}"
|
||||||
|
|
||||||
- name: Set up chart-testing
|
|
||||||
uses: helm/chart-testing-action@v2.2.1
|
|
||||||
|
|
||||||
- name: Collect changed charts
|
- name: Collect changed charts
|
||||||
id: changed-charts
|
id: changed-charts
|
||||||
shell: bash
|
shell: bash
|
||||||
|
working-directory: src
|
||||||
run: |
|
run: |
|
||||||
CHARTS=$(ct list-changed --config .ci/ct/ct-lint.yaml)
|
CHARTS=$(ct list-changed --config .ci/ct/ct-lint.yaml)
|
||||||
echo "Charts: ${CHARTS}"
|
|
||||||
# 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[*]}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue