Commit cc002a7f authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'feat-download-yq-for-correct-processor-architecture' into 'master'

feat: download yq for correct processor architecture

Closes #68

See merge request to-be-continuous/semantic-release!78
parents 2a2883ee 86729b39
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -712,8 +712,9 @@ stages:
  function maybe_install_yq() {
    if ! command -v yq > /dev/null
    then
      arch=$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')
      yq_version=$(github_get_latest_version mikefarah/yq)
      yq_binary=yq_linux_amd64
      yq_binary=yq_linux_${arch}
      yq_url="https://github.com/mikefarah/yq/releases/download/${yq_version}/${yq_binary}.tar.gz"
      yq_cache="$XDG_CACHE_HOME/yq-$(echo "$yq_url" | md5sum | cut -d" " -f1)"