diff --git a/.github/workflows/update-homebrew.yml b/.github/workflows/update-homebrew.yml index 274ea9e94..4057a168e 100644 --- a/.github/workflows/update-homebrew.yml +++ b/.github/workflows/update-homebrew.yml @@ -61,11 +61,11 @@ jobs: id: updateformula run: | echo "${{ steps.gettemplate.outputs.template }}" > ./Formula/xata.rb - sed -i 's/__CLI_VERSION__/${{ inputs.version }}/g' ./Formula/xata.rb - sed -i 's/__CLI_MAC_INTEL_SHA256__/${{ inputs.mac_intel_sha }}/g' ./Formula/xata.rb - sed -i 's/__CLI_MAC_ARM_SHA256__/${{ inputs.mac_arm_sha }}/g' ./Formula/xata.rb - 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 + sed -i 's/__CLI_VERSION__/\"${{ inputs.version }}\"/g' ./Formula/xata.rb + sed -i 's/__CLI_MAC_INTEL_SHA256__/\"${{ inputs.mac_intel_sha }}\"/g' ./Formula/xata.rb + sed -i 's/__CLI_MAC_ARM_SHA256__/\"${{ inputs.mac_arm_sha }}\"/g' ./Formula/xata.rb + 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}}" COMMITSHA="${{inputs.commit_sha}}" @@ -77,10 +77,10 @@ jobs: CLI_LINUX_DOWNLOAD_URL="${BASE_URL}-linux-x64.tar.xz" CLI_LINUX_ARM_DOWNLOAD_URL="${BASE_URL}-linux-arm64.tar.xz" - 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 + 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: Read formula file id: getformula