From e98a14d52c67e859c870d3a827c7b61ed6b78bc6 Mon Sep 17 00:00:00 2001 From: Paul Gellai Date: Fri, 22 Mar 2024 11:31:04 -0700 Subject: [PATCH] update script to fix path isues --- .github/workflows/update-homebrew-formula.yml | 3 ++- .github/workflows/update_formula.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) 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")