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.ymlindex 0feb95d..21abace 100644--- a/.github/workflows/homebrew.yml+++ b/.github/workflows/homebrew.yml@@ -14,10 +14,20 @@ jobs:permissions:contents: writesteps:+ - 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 repositoryuses: actions/checkout@v7with:- 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