From 4cf28b0957d8e58cbff2b5d6d20b9a5bc0090d6c Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 23 Jul 2024 16:09:33 +0200 Subject: [PATCH] test --- .github/workflows/update-homebrew.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/update-homebrew.yml b/.github/workflows/update-homebrew.yml index fc17aba22..3a8552ae2 100644 --- a/.github/workflows/update-homebrew.yml +++ b/.github/workflows/update-homebrew.yml @@ -60,8 +60,9 @@ jobs: sed -i 's/__CLI_LINUX_SHA256__/${{ inputs.linux_sha }}/g' ./Formula/xata.rb sed -i 's/__CLI_LINUX_ARM_SHA256__/${{ inputs.linux_arm_sha }}/g' ./Formula/xata.rb - VER=${{inputs.version}} - COM=${{inputs.commit_sha}} | head -c8 + VER="${{inputs.version}}" + COMMITSHA="${{inputs.commitSha}}" + COM="$(echo $COMMITSHA | head -c8)" BASE_URL="https://xata-cli-assets.s3.us-east-1.amazonaws.com/versions/${VER}/${COM}/xata-v${VER}-${COM}" CLI_MAC_INTEL_DOWNLOAD_URL="${BASE_URL}-darwin-x64.tar.xz" @@ -69,15 +70,10 @@ jobs: CLI_LINUX_DOWNLOAD_URL="${BASE_URL}-linux-x64.tar.xz" CLI_LINUX_ARM_DOWNLOAD_URL="${BASE_URL}-linux-arm64.tar.xz" - mac_intel_download_url = ${CLI_MAC_INTEL_DOWNLOAD_URL} - mac_arm_download_url = ${CLI_MAC_ARM_DOWNLOAD_URL} - linux_download_url = ${CLI_LINUX_DOWNLOAD_URL} - linux_arm_download_url = ${CLI_LINUX_ARM_DOWNLOAD_URL} - - sed -i 's/__CLI_MAC_INTEL_DOWNLOAD_URL__/${mac_intel_download_url}/g' ./Formula/xata.rb - sed -i 's/__CLI_MAC_ARM_DOWNLOAD_URL__/${mac_arm_download_url}/g' ./Formula/xata.rb - sed -i 's/__CLI_LINUX_DOWNLOAD_URL__/${linux_download_url}/g' ./Formula/xata.rb - sed -i 's/__CLI_LINUX_ARM_DOWNLOAD_URL__/${linux_arm_download_url}/g' ./Formula/xata.rb + sed -i 's/__CLI_MAC_INTEL_DOWNLOAD_URL__/${CLI_MAC_INTEL_DOWNLOAD_URL}/g' ./Formula/xata.rb + sed -i 's/__CLI_MAC_ARM_DOWNLOAD_URL__/${CLI_MAC_INTEL_DOWNLOAD_URL}/g' ./Formula/xata.rb + sed -i 's/__CLI_LINUX_DOWNLOAD_URL__/${CLI_MAC_INTEL_DOWNLOAD_URL}/g' ./Formula/xata.rb + sed -i 's/__CLI_LINUX_ARM_DOWNLOAD_URL__/${CLI_MAC_INTEL_DOWNLOAD_URL}/g' ./Formula/xata.rb - name: commit changes run: |