diff --git a/.github/workflows/update-homebrew-formula.yml b/.github/workflows/update-homebrew-formula.yml index 850617a..f6effad 100644 --- a/.github/workflows/update-homebrew-formula.yml +++ b/.github/workflows/update-homebrew-formula.yml @@ -22,7 +22,8 @@ jobs: - name: Update Homebrew formula run: | - sh ./software/.github/workflows/update_formula.sh + cd software + sh ./.github/workflows/update_formula.sh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update_formula.sh b/.github/workflows/update_formula.sh index 2b126aa..9aaeb8a 100755 --- a/.github/workflows/update_formula.sh +++ b/.github/workflows/update_formula.sh @@ -1,9 +1,11 @@ #!/bin/bash -# Replace these variables with your actual data -GITHUB_REPO="therealpaulgg/ssh-sync" # Your GitHub username and repository name -FORMULA_PATH="Formula/ssh-sync.rb" # Path to your formula in the tap -TAP_REPO="therealpaulgg/homebrew-ssh-sync" # Your tap repository +TAP_PATH="../homebrew-tap" +cd "$TAP_PATH" + +GITHUB_REPO="therealpaulgg/ssh-sync" +FORMULA_PATH="Formula/ssh-sync.rb" +TAP_REPO="therealpaulgg/homebrew-ssh-sync" # Fetch the latest release data from GitHub LATEST_RELEASE=$(curl -s "https://api.github.com/repos/$GITHUB_REPO/releases/latest")