Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

fix(ci): harden manual homebrew ref

Samir Hossains95bad7cc6ab4
diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml
index 0feb95d..21abace 100644
--- a/.github/workflows/homebrew.yml
+++ b/.github/workflows/homebrew.yml
@@ -14,10 +14,20 @@ jobs:
permissions:
contents: write
steps:
+ - name: Determine ref
+ id: ref
+ run: |
+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
+ REF="${{ github.ref }}"
+ else
+ REF="${{ github.event.workflow_run.head_sha }}"
+ fi
+ echo "target_ref=$REF" >> $GITHUB_OUTPUT
+
- name: Checkout repository
uses: actions/checkout@v7
with:
- ref: ${{ github.event_name == 'workflow_dispatch' && github.ref || github.event.workflow_run.head_sha }}
+ ref: ${{ steps.ref.outputs.target_ref }}
fetch-depth: 0
- name: Get Release Data