From 5e9b807ba0e95a187007c27da9cf846819f8b041 Mon Sep 17 00:00:00 2001 From: Manabu Sugimoto Date: Thu, 11 Nov 2021 13:42:12 +0900 Subject: [PATCH] release: Use ${GOPATH}/bin/yq for upload-libseccomp-tarball action We need to explicitly call `${GOPATH}/bin/yq` that is installed by `ci/install_yq.sh`. Fixes: #3014 Signed-off-by: Manabu Sugimoto (cherry picked from commit 34307235942acd838f774c254c38af017b508d9b) --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5aed5e4f1..ca2db149c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -158,13 +158,14 @@ jobs: - name: download-and-upload-tarball env: GITHUB_TOKEN: ${{ secrets.GIT_UPLOAD_TOKEN }} + GOPATH: ${HOME}/go run: | pushd $GITHUB_WORKSPACE ./ci/install_yq.sh tag=$(echo $GITHUB_REF | cut -d/ -f3-) versions_yaml="versions.yaml" - version=$(yq read ${versions_yaml} "externals.libseccomp.version") - repo_url=$(yq read ${versions_yaml} "externals.libseccomp.url") + version=$(${GOPATH}/bin/yq read ${versions_yaml} "externals.libseccomp.version") + repo_url=$(${GOPATH}/bin/yq read ${versions_yaml} "externals.libseccomp.url") download_url="${repo_url}/releases/download/v${version}" tarball="libseccomp-${version}.tar.gz" asc="${tarball}.asc"