Skip to content

ci: add update crd ci #3

ci: add update crd ci

ci: add update crd ci #3

name: test-release
on:
pull_request:
branches:
- main
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Extract latest App Version
uses: tdemin/find-latest-tag@v1
id: app_version
with:
repo: https://${{ secrets.HELM_CHARTS_BOT }}@github.com/krateoplatformops/patch-provider.git
- name: Print latest App Version
run: echo ${{ steps.app_version.outputs.tag }}
- name: Checkout
uses: actions/checkout@v3
- name: Replace Version in Chart.yaml
run: sed -i 's/CHART_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml
- name: Replace App Version in Chart.yaml
run: sed -i 's/APP_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml
- name: Set up Helm
uses: azure/[email protected]
- name: Helm lint
run: helm lint ./chart