ci: use git submodules for Chart Actions (#14211)

* Add chart-action submodules

* use local github actions for chart actions

* Run actions checkout for local checkout

* Run lint when PR is edited

* Remove path filter and dummy value

* Fix fetch-depth

* Test chart version bump

* Update maintainer to pass validation

* Update maintainer to pass validation
This commit is contained in:
jawabuu
2021-04-17 19:13:36 +03:00
committed by GitHub
parent 77a9cc7088
commit 61325635da
7 changed files with 21 additions and 12 deletions

View File

@@ -2,16 +2,17 @@ name: Lint and Test Charts
on:
pull_request:
paths:
- 'helm/**'
types: [opened, edited, reopened, synchronize]
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: recursive
fetch-depth: 0
- name: Set up Helm
@@ -24,7 +25,7 @@ jobs:
python-version: 3.7
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.0.1
uses: ./.github/actions/chart-testing-action
- name: Run chart-testing (list-changed)
id: list-changed

View File

@@ -11,9 +11,11 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: recursive
fetch-depth: 0
- name: Configure Git
@@ -27,7 +29,7 @@ jobs:
version: v3.5.4
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.0
uses: ./.github/actions/chart-releaser-action
with:
charts_dir: helm
env: