From 08d198ca2900c8711d6dcf2f3e6279843a56203f Mon Sep 17 00:00:00 2001 From: James Kwon <96548424+hongil0316@users.noreply.github.com> Date: Thu, 9 May 2024 09:08:46 -0400 Subject: [PATCH] Update publish_package.yml --- .github/workflows/publish_package.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 78c405d..ea108ba 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -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 github-actions@github.com + 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: github-actions@github.com + GIT_AUTHOR_NAME: github-actions + GIT_AUTHOR_EMAIL: github-actions@github.com + 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