update post submit helm ci and clean up (#11220)
Signed-off-by: cpanato <ctadeu@gmail.com>
This commit is contained in:
parent
531b007b60
commit
8ede0f777f
1 changed files with 12 additions and 10 deletions
22
.github/workflows/helm.yaml
vendored
22
.github/workflows/helm.yaml
vendored
|
@ -11,12 +11,13 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
changes:
|
changes:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read # for dorny/paths-filter to fetch a list of changed files
|
contents: read # for dorny/paths-filter to fetch a list of changed files
|
||||||
pull-requests: read # for dorny/paths-filter to read pull requests
|
|
||||||
runs-on: ubuntu-latest
|
if: github.repository == 'kubernetes/ingress-nginx'
|
||||||
if: |
|
|
||||||
(github.repository == 'kubernetes/ingress-nginx')
|
|
||||||
outputs:
|
outputs:
|
||||||
docs: ${{ steps.filter.outputs.docs }}
|
docs: ${{ steps.filter.outputs.docs }}
|
||||||
charts: ${{ steps.filter.outputs.charts }}
|
charts: ${{ steps.filter.outputs.charts }}
|
||||||
|
@ -33,9 +34,11 @@ jobs:
|
||||||
./ah lint -p charts/ingress-nginx || exit 1
|
./ah lint -p charts/ingress-nginx || exit 1
|
||||||
rm -f ./ah ./ah_1.5.0_linux_amd64.tar.gz
|
rm -f ./ah ./ah_1.5.0_linux_amd64.tar.gz
|
||||||
|
|
||||||
- name: Lint
|
- name: Set up chart-testing
|
||||||
run: |
|
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
|
||||||
./build/run-in-docker.sh ./hack/verify-chart-lint.sh
|
|
||||||
|
- name: Run chart-testing (lint)
|
||||||
|
run: ct lint --config ./.ct.yaml
|
||||||
|
|
||||||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
||||||
id: filter
|
id: filter
|
||||||
|
@ -55,9 +58,8 @@ jobs:
|
||||||
|
|
||||||
needs:
|
needs:
|
||||||
- changes
|
- changes
|
||||||
if: |
|
|
||||||
(github.repository == 'kubernetes/ingress-nginx') &&
|
if: ${{ needs.changes.outputs.charts == 'true' }}
|
||||||
(needs.changes.outputs.charts == 'true')
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout master
|
- name: Checkout master
|
||||||
|
|
Loading…
Reference in a new issue