Skip to content

Commit 3083e0c

Browse files
committed
chore(lint): align Helm v3 check in lint.yml with ubuntu-latest runners
Match deploy-gke.yml from #1680 by checking `helm version --short | grep -q '^v3\.'` instead of `command -v helm` so ubuntu-latest's pre-installed Helm v4.3.1 does not skip installing pinned Helm v3.20.1. TAG=agy CONV=ba8411ef-c093-4f45-950a-b3bc1899268c
1 parent ab6fbd7 commit 3083e0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/lint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ jobs:
358358
- name: 'Install Helm'
359359
if: steps.changes.outputs.helm == 'true'
360360
run: |
361-
if ! command -v helm &>/dev/null; then
361+
if ! helm version --short 2>/dev/null | grep -q '^v3\.'; then
362362
mkdir -p "${RUNNER_TEMP}/helm"
363363
curl -sSfL "https://get.helm.sh/helm-v3.20.1-linux-amd64.tar.gz" \
364364
| tar -xz -C "${RUNNER_TEMP}/helm" --strip-components=1 linux-amd64/helm

0 commit comments

Comments
 (0)