From 0da97999ea789ac6372f700261e460a14f774b37 Mon Sep 17 00:00:00 2001 From: Paul Gellai Date: Fri, 22 Mar 2024 11:31:04 -0700 Subject: [PATCH] fix sed script --- .github/workflows/update-homebrew-formula.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-homebrew-formula.yml b/.github/workflows/update-homebrew-formula.yml index b07cfda..c9cf46b 100644 --- a/.github/workflows/update-homebrew-formula.yml +++ b/.github/workflows/update-homebrew-formula.yml @@ -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 @@ -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 }}