-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07b5740
commit 69e638e
Showing
1 changed file
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | | ||
|