Skip to content

Commit 0c9b4f7

Browse files
committed
Fix brew cask
1 parent a593ab2 commit 0c9b4f7

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,16 @@ jobs:
3434
echo "sha256=$hash" >> $GITHUB_OUTPUT
3535
- name: Update Cask File
3636
run: |
37-
sed -i'' -e 's/sha256 ""/sha256 "${{ steps.calculate_sha.outputs.sha256 }}"/g' chilikeys.rb
37+
sed -i'' -e 's/sha256 ""/sha256 "${{ steps.calculate_sha.outputs.sha256 }}"/g' Formula/chilikeys.rb
3838
- name: Create Release
3939
uses: softprops/action-gh-release@v2
4040
with:
4141
files: |
4242
ChiliKeys-${{ github.ref_name }}.zip
4343
ChiliKeys Installer ${{ github.ref_name }}.dmg
44-
- name: Push Cask File to Tap
45-
run: |
46-
git config --global user.email "actions@github.com"
47-
git config --global user.name "GitHub Actions"
48-
git add chilikeys.rb
49-
git commit -m "Update Cask file for ${{ github.ref_name }}"
50-
git remote add tap https://github.com/sergchil/homebrew-chilikeys
51-
git push tap main
44+
- name: Commit Cask File
45+
uses: stefanzweifel/git-auto-commit-action@v5
46+
with:
47+
file_pattern: Formula/chilikeys.rb
48+
commit_message: Update Cask file for ${{ github.ref_name}}
49+
branch: main
File renamed without changes.

0 commit comments

Comments
 (0)