From 5b21f3006c4970be47d113010913d5aa1d96fcef Mon Sep 17 00:00:00 2001 From: Charle Demers Date: Thu, 19 Oct 2023 21:58:18 -0400 Subject: [PATCH] fix bugs in the homebrew update action --- .github/workflows/update-hombrew-formula.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-hombrew-formula.yaml b/.github/workflows/update-hombrew-formula.yaml index cc41e13..591804f 100644 --- a/.github/workflows/update-hombrew-formula.yaml +++ b/.github/workflows/update-hombrew-formula.yaml @@ -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