Skip to content

Commit

Permalink
release: Use ${GOPATH}/bin/yq for upload-libseccomp-tarball action
Browse files Browse the repository at this point in the history
We need to explicitly call `${GOPATH}/bin/yq` that is installed by
`ci/install_yq.sh`.

Fixes: #3014

Signed-off-by: Manabu Sugimoto <[email protected]>
(cherry picked from commit 3430723)
  • Loading branch information
ManaSugi committed Nov 11, 2021
1 parent de6fe98 commit 5e9b807
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5e9b807

Please sign in to comment.