diff --git a/.github/workflows/update-homebrew.yml b/.github/workflows/update-homebrew.yml index 4b41b47..eb5fe61 100644 --- a/.github/workflows/update-homebrew.yml +++ b/.github/workflows/update-homebrew.yml @@ -1,11 +1,16 @@ name: Update Homebrew Tap on: - release: - types: [published] + workflow_run: + workflows: ["Build and Release"] + types: + - completed + branches: + - main jobs: update-tap: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: macos-latest steps: - name: Checkout tap @@ -40,7 +45,7 @@ jobs: fi echo "sha256=$SHA256" >> $GITHUB_OUTPUT - # ���出信息用于调试 + # 输出信息用于调试 echo "Version: $VERSION" echo "SHA256: $SHA256"