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