Merge pull request #3021 from ManaSugi/fix-yq-for-2.3

stable-2.3 | release: Use ${GOPATH}/bin/yq for upload-libseccomp-tarball action
This commit is contained in:
Eric Ernst 2021-11-11 11:39:02 -08:00 committed by GitHub
commit 57ffe14940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"