Skip to content

Commit

Permalink
Refactor GitHub Actions workflow for Homebrew tap updates
Browse files Browse the repository at this point in the history
- Changed the trigger for the update-homebrew.yml workflow to run upon the completion of the "Build and Release" workflow on the main branch, enhancing the automation process.
- Added a conditional check to ensure the job only runs if the previous workflow concluded successfully.
- Updated comments in the script for improved clarity.

These changes streamline the workflow and improve its reliability.
  • Loading branch information
ygsgdbd committed Dec 11, 2024
1 parent 238de5e commit 2e99b39
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/update-homebrew.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -40,7 +45,7 @@ jobs:
fi
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
# ���出信息用于调试
# 输出信息用于调试
echo "Version: $VERSION"
echo "SHA256: $SHA256"
Expand Down

0 comments on commit 2e99b39

Please sign in to comment.