Skip to content

Commit

Permalink
Merge pull request #3021 from ManaSugi/fix-yq-for-2.3
Browse files Browse the repository at this point in the history
stable-2.3 | release: Use ${GOPATH}/bin/yq for upload-libseccomp-tarball action
  • Loading branch information
egernst authored Nov 11, 2021
2 parents de6fe98 + 5e9b807 commit 57ffe14
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 57ffe14

Please sign in to comment.