Skip to content

Commit

Permalink
fix sed script
Browse files Browse the repository at this point in the history
  • Loading branch information
therealpaulgg committed Mar 27, 2024
1 parent e46453e commit 0da9799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-homebrew-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
- name: Update Homebrew formula
run: |
cd homebrew-tap
ls Formula
GITHUB_REPO="therealpaulgg/ssh-sync"
FORMULA_PATH="Formula/ssh-sync.rb"
TAP_REPO="therealpaulgg/homebrew-ssh-sync"
# Fetch the latest release data from GitHub
Expand All @@ -39,8 +39,8 @@ jobs:
SHA256=$(curl -Ls $TARBALL_URL | shasum -a 256 | awk '{print $1}')
# Update the formula with the new version and sha256
sed -i "" "s|url \".*\"|url \"$TARBALL_URL\"|g" ./Formula/ssh-sync.rb
sed -i "" "s|sha256 \".*\"|sha256 \"$SHA256\"|g" ./Formula/ssh-sync.rb
sed -i "s|url \".*\"|url \"$TARBALL_URL\"|g" $FORMULA_PATH
sed -i "s|sha256 \".*\"|sha256 \"$SHA256\"|g" $FORMULA_PATH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 0da9799

Please sign in to comment.