Skip to content

Commit

Permalink
cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
eemmiillyy committed Jul 23, 2024
1 parent 1d5ba0b commit 0c27818
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-cli-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,21 @@ jobs:

- name: Capture version
id: capture-version
run: echo "VERSION=${{ fromJson(inputs.publishedPackages).version }}" >> $GITHUB_ENV
run: |
echo "VERSION=${{ fromJson(inputs.publishedPackages).version }}" >> $GITHUB_ENV
echo $VERSION
- name: Create SHA outputs macos
if: matrix.os == 'macos-latest'
working-directory: /home/runner/work/client-ts/client-ts/cli/dist
working-directory: /home/runner/work/client-ts/client-ts/cli
id: sha-macos
run: |
echo "sha-macos-arm=$(sh -c 'shasum < "$1" | cut -d" " -f1' -- xata-v${{ steps.capture-version.version }}-${{inputs.commitSha}}-darwin-arm64.tar.gz)" >> "$GITHUB_OUTPUT"
echo "sha-macos-intel=$(sh -c 'shasum < "$1" | cut -d" " -f1' -- xata-v${{ steps.capture-version.version }}-${{inputs.commitSha}}-darwin-x64.tar.gz)" >> "$GITHUB_OUTPUT"
- name: Create SHA outputs ubuntu
if: matrix.os == 'ubuntu-latest'
working-directory: /home/runner/work/client-ts/client-ts/cli/dist
working-directory: /home/runner/work/client-ts/client-ts/cli
id: sha-ubuntu
run: |
echo "sha-linux=$(sha256sum xata-v${{ steps.capture-version.version }}-${{inputs.commitSha}}-linux-arm.tar.gz)" >> "$GITHUB_OUTPUT"
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/update-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,16 @@ jobs:
- name: Update Homebrew Formula using template variables
run: |
echo "${{ steps.gettemplate.outputs.template }}" > ./Formula/xata.rb
sed -i 's/VERSION/${{ inputs.version }}/g' ./Formula/xata.rb
sed -i 's/MAC_INTEL_SHA/${{ inputs.mac_intel_sha }}/g' ./Formula/xata.rb
sed -i 's/MAC_ARM_SHA/${{ inputs.mac_arm_sha }}/g' ./Formula/xata.rb
sed -i 's/LINUX_SHA/${{ inputs.linux_sha }}/g' ./Formula/xata.rb
sed -i 's/LINUX_ARM_SHA/${{ 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
# todo fill in next correctly
sed -i 's/__CLI_MAC_INTEL_DOWNLOAD_URL__/${{ secrets.CLI_MAC_INTEL_DOWNLOAD_URL }}/g' ./Formula/xata.rb
sed -i 's/__CLI_MAC_ARM_DOWNLOAD_URL__/${{ secrets.CLI_MAC_INTEL_DOWNLOAD_URL }}/g' ./Formula/xata.rb
sed -i 's/__CLI_LINUX_DOWNLOAD_URL__/${{ secrets.CLI_MAC_INTEL_DOWNLOAD_URL }}/g' ./Formula/xata.rb
sed -i 's/__CLI_LINUX_ARM_DOWNLOAD_URL__/${{ secrets.CLI_MAC_INTEL_DOWNLOAD_URL }}/g' ./Formula/xata.rb
# - name: commit changes
# run: |
Expand Down

0 comments on commit 0c27818

Please sign in to comment.