feat: Create a custom action to verify chart version

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-07-28 17:01:37 +02:00 committed by GitHub
parent c598d8a00a
commit b4b335ca6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 25241 additions and 51 deletions

View file

@ -58,18 +58,11 @@ jobs:
fetch-depth: 0
ref: ${{ inputs.checkoutCommit }}
- name: Install zx
shell: bash
run: |
npm i --location=global zx
npm link zx
- name: Check chart version update
shell: bash
run: |
if ! zx .ci/scripts/check_chart_version.mjs "charts/${{ matrix.chart }}" ; then
echo "::error::Chart version has not been updated!" && exit 1
fi
- name: Verify chart version
uses: ./.github/actions/verify-chart-version
id: verify-chart-version
with:
chart: "charts/${{ matrix.chart }}"
- name: Install Kubernetes tools
uses: yokawasa/action-setup-kube-tools@v0.8.2