-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc485ed
commit 08d198c
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,10 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: 'Comfy-Org/homebrew-comfy-cli' | ||
token: ${{ secrets.COMMITTER_TOKEN }} | ||
path: 'homebrew-repo' | ||
|
||
- name: Extract version from tag | ||
id: get_version | ||
|
@@ -57,6 +61,22 @@ jobs: | |
source venv/bin/activate | ||
poet comfy-cli==$VERSION > comfy-cli.rb | ||
- name: Commit and Push Formula | ||
run: | | ||
mv comfy-cli.rb homebrew-repo/Formula/ | ||
cd homebrew-repo | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add Formula/comfy-cli.rb | ||
git commit -m "Update comfy-cli formula to version $VERSION" | ||
git push | ||
env: | ||
GIT_COMMITTER_NAME: github-actions | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
GIT_AUTHOR_NAME: github-actions | ||
GIT_AUTHOR_EMAIL: [email protected] | ||
GITHUB_TOKEN: ${{ secrets.COMMITTER_TOKEN }} | ||
|
||
test-homebrew-installation: | ||
name: Test Comfy CLI Installation via homebrew | ||
needs: publish-homebrew-tap # This job runs after build-n-publish completes successfully | ||
|