ci: add update crd ci #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |