Skip to content

Commit

Permalink
add homebrew repo (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylokulyhin authored Sep 30, 2024
1 parent fc0923a commit bc3b327
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Checkout Homebrew Tap Repository
uses: actions/checkout@v2
with:
repository: kyrylokulyhin/ecs-exec
repository: kyrylokulyhin/homebrew-cli-tools
token: ${{ secrets.GITHUB_TOKEN }}
path: homebrew-cli-tools

Expand All @@ -90,7 +90,6 @@ jobs:
- name: Check if Formula Exists
run: |
cd homebrew-cli-tools/
if [ ! -f "homebrew-cli-tools/Formula/ecs-exec.rb" ]; then
echo "Formula file not found!"
exit 1
Expand All @@ -99,7 +98,6 @@ jobs:
- name: Update Homebrew Formula
run: |
CHECKSUM=$(awk '{ print $1 }' ecs-exec-${{ matrix.target }}.sha256)
cd homebrew-cli-tools/
FORMULA_PATH="homebrew-cli-tools/Formula/ecs-exec.rb"
DOWNLOAD_URL="https://github.com/kyrylokulyhin/ecs-exec/releases/download/${{ github.event.release.tag_name }}/ecs-exec-${{ matrix.target }}.zip"
Expand All @@ -124,6 +122,6 @@ jobs:
cd homebrew-cli-tools/
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add homebrew-cli-tools/Formula/ecs-exec.rb
git add Formula/ecs-exec.rb
git commit -m "Update ecs-exec formula to version ${{ github.event.release.tag_name }}"
git push origin HEAD:main

0 comments on commit bc3b327

Please sign in to comment.