Skip to content

Commit

Permalink
update script to fix path isues
Browse files Browse the repository at this point in the history
  • Loading branch information
therealpaulgg committed Mar 27, 2024
1 parent 22a5df0 commit e98a14d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/update-homebrew-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/update_formula.sh
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit e98a14d

Please sign in to comment.