Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
eemmiillyy committed Jul 24, 2024
1 parent 07b5740 commit 69e638e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/update-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,16 @@ jobs:
git config user.email "[email protected]"
git config user.name "Xata"
- name: Read template file
id: gettemplate
- name: Update Homebrew Formula using template variables
id: updateformula
run: |
{
echo 'template<<EOF'
cat ./Template/xata.rb
echo
echo EOF
} >> "$GITHUB_OUTPUT"
} > ./Formula/xata.rb
- name: Update Homebrew Formula using template variables
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
Expand All @@ -82,12 +78,17 @@ jobs:
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
echo "formula=$(cat ./Formula/xata.rb)" >> $GITHUB_OUTPUT
{
echo 'formula<<EOF'
cat ./Formula/xata.rb
echo
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Read formula file
id: getformula
run: |
echo ${{ steps.updateformula.outputs.formula }}
echo "${{ steps.updateformula.outputs.formula }}"
- name: commit changes
run: |
Expand Down

0 comments on commit 69e638e

Please sign in to comment.