Skip to content

Commit 08d198c

Browse files
Update publish_package.yml
1 parent cc485ed commit 08d198c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/publish_package.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
steps:
4242
- name: Checkout code
4343
uses: actions/checkout@v2
44+
with:
45+
repository: 'Comfy-Org/homebrew-comfy-cli'
46+
token: ${{ secrets.COMMITTER_TOKEN }}
47+
path: 'homebrew-repo'
4448

4549
- name: Extract version from tag
4650
id: get_version
@@ -57,6 +61,22 @@ jobs:
5761
source venv/bin/activate
5862
poet comfy-cli==$VERSION > comfy-cli.rb
5963
64+
- name: Commit and Push Formula
65+
run: |
66+
mv comfy-cli.rb homebrew-repo/Formula/
67+
cd homebrew-repo
68+
git config user.name github-actions
69+
git config user.email [email protected]
70+
git add Formula/comfy-cli.rb
71+
git commit -m "Update comfy-cli formula to version $VERSION"
72+
git push
73+
env:
74+
GIT_COMMITTER_NAME: github-actions
75+
GIT_COMMITTER_EMAIL: [email protected]
76+
GIT_AUTHOR_NAME: github-actions
77+
GIT_AUTHOR_EMAIL: [email protected]
78+
GITHUB_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
79+
6080
test-homebrew-installation:
6181
name: Test Comfy CLI Installation via homebrew
6282
needs: publish-homebrew-tap # This job runs after build-n-publish completes successfully

0 commit comments

Comments
 (0)