fixed correct yq
Some checks failed
Lint and Test Charts / lint-test (push) Successful in 7s
Lint and Test Charts / package-helm (push) Failing after 19s

This commit is contained in:
Jonas Forsberg 2024-10-18 15:06:16 +02:00
parent 5a4b3d7612
commit 0f4336caf9

View File

@ -17,10 +17,17 @@ jobs:
with:
version: v3.14.4
- name: Install prereq
run: |
add-apt-repository ppa:rmescandon/yq -y
apt install yq -y
- name: Get package name
id: chart_name
uses: mikefarah/yq@master
with:
cmd: yq .name Chart.yaml
- name: Get package version
id: chart_version
uses: mikefarah/yq@master
with:
cmd: yq .version Chart.yaml
- name: build helm package
shell: bash
@ -28,6 +35,8 @@ jobs:
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
REPO_USERNAME: ${{ vars.REPO_USERNAME }}
REPO_HOST: ${{ vars.REPO_HOST }}
CHART_NAME: ${{ steps.chart_username.outputs.result }}
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
run: |
REPO_PATH=$(git rev-parse --show-toplevel)
CHART_NAME=$(yq .version Chart.yaml)