Skip to content

Commit

Permalink
fix bugs in the homebrew update action
Browse files Browse the repository at this point in the history
  • Loading branch information
cdemers committed Oct 20, 2023
1 parent c45d8c8 commit 5b21f30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-hombrew-formula.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ jobs:
run: pip install requests

- name: Clone Homebrew Tap Repo
run: git clone https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/cdemers/homebrew-tools-tap.git
run: git clone https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/cdemers/homebrew-tools.git

- name: Update Formula
run: |
VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
sed -i "s/version \".*\"/version \"$VERSION\"/" homebrew-tools-tap/Formulas/question.rb
sed -i "s|url \".*\"|url \"https://github.com/cdemers/question/releases/download/$VERSION/question.tgz\"|" homebrew-tools-tap/Formulas/question.rb
sed -i "s/version \".*\"/version \"$VERSION\"/" homebrew-tools/Formulas/question.rb
sed -i "s|url \".*\"|url \"https://github.com/cdemers/question/releases/download/$VERSION/question.tgz\"|" homebrew-tools/Formulas/question.rb
- name: Commit and Push Formula
run: |
cd homebrew-tools-tap
cd homebrew-tools
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add Formulas/question.rb
Expand Down

0 comments on commit 5b21f30

Please sign in to comment.