@@ -79,31 +79,27 @@ jobs:
7979 PR_DEFAULT_BRANCH : ${{ github.event.pull_request.head.repo.default_branch }}
8080 run : |
8181 # variables for formula
82- branch="${{ env.HEAD_REF }}"
83- build_version=${{ inputs.release_version }}
84- commit=${{ inputs.release_commit }}
85-
86- # check the branch variable
87- if [ -z "$branch" ]
88- then
82+ branch="${HEAD_REF}"
83+ build_version="${{ inputs.release_version }}"
84+ clone_url="${{ github.event.repository.clone_url }}"
85+ commit="${{ inputs.release_commit }}"
86+ default_branch="${{ github.event.repository.default_branch }}"
87+ tag="${{ github.ref_name }}"
88+
89+ if [ "${{ github.event_name }}" == "push" ]; then
8990 echo "This is a PUSH event"
90- clone_url=${{ github.event.repository.clone_url }}
91- branch="${{ github.ref_name }}"
92- default_branch="${{ github.event.repository.default_branch }}"
93-
9491 if [ "${{ matrix.release }}" == "true" ]; then
9592 # we will publish the formula with the release tag
9693 tag="${{ inputs.release_tag }}"
97- else
98- tag="${{ github.ref_name }}"
9994 fi
100- else
95+ elif [ "${{ github.event_name }}" == "pull_request" ]; then
10196 echo "This is a PR event"
10297 clone_url=${{ github.event.pull_request.head.repo.clone_url }}
103- branch="${{ env. PR_HEAD_REF } }"
104- default_branch="${{ env. PR_DEFAULT_BRANCH } }"
105- tag="${{ env. PR_HEAD_REF } }"
98+ branch="${PR_HEAD_REF}"
99+ default_branch="${PR_DEFAULT_BRANCH}"
100+ tag="${PR_HEAD_REF}"
106101 fi
102+
107103 echo "Branch: ${branch}"
108104 echo "Clone URL: ${clone_url}"
109105 echo "Tag: ${tag}"
@@ -153,7 +149,7 @@ jobs:
153149 - name : Validate Homebrew Formula
154150 id : test
155151 if : matrix.release != true
156- uses : LizardByte/actions/actions/release_homebrew@v2025.914.154454
152+ uses : LizardByte/actions/actions/release_homebrew@v2025.917.25039
157153 with :
158154 formula_file : ${{ github.workspace }}/homebrew/sunshine.rb
159155 git_email : ${{ secrets.GIT_EMAIL }}
0 commit comments