From 20354e7c113c2e1bb3851ba0ddbb6f7d987f1b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Thu, 21 Nov 2024 12:34:15 +0100 Subject: [PATCH] CI: Use grep + cut rather than jq to get the version number Github macOS runners don't come with `jq` pre-installed. --- .github/workflows/scan_released.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scan_released.yml b/.github/workflows/scan_released.yml index 57af901..fc320c9 100644 --- a/.github/workflows/scan_released.yml +++ b/.github/workflows/scan_released.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 - name: Download container image for the latest release and load it run: | - VERSION=$(curl https://api.github.com/repos/freedomofpress/dangerzone/releases/latest | jq -r '.tag_name') + VERSION=$(curl https://api.github.com/repos/freedomofpress/dangerzone/releases/latest | grep "tag_name" | cut -d '"' -f 4) CONTAINER_FILENAME=container-${VERSION:1}-${{ matrix.arch }}.tar.gz wget https://github.com/freedomofpress/dangerzone/releases/download/${VERSION}/${CONTAINER_FILENAME} -O ${CONTAINER_FILENAME} docker load -i ${CONTAINER_FILENAME}