Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
eemmiillyy committed Jul 23, 2024
1 parent be8fd04 commit 4cf28b0
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/update-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,20 @@ 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"
CLI_MAC_ARM_DOWNLOAD_URL="${BASE_URL}-darwin-arm64.tar.xz"
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: |
Expand Down

0 comments on commit 4cf28b0

Please sign in to comment.