@@ -76,49 +76,45 @@ jobs:
7676 run : |
7777 # variables for formula
7878 branch="${{ github.head_ref }}"
79+ build_version=${{ inputs.release_version }}
7980 commit=${{ inputs.release_commit }}
8081
8182 # check the branch variable
8283 if [ -z "$branch" ]
8384 then
8485 echo "This is a PUSH event"
85- build_version=${{ inputs.release_tag }}
8686 clone_url=${{ github.event.repository.clone_url }}
8787 branch="${{ github.ref_name }}"
8888 default_branch="${{ github.event.repository.default_branch }}"
8989
9090 if [ "${{ matrix.release }}" == "true" ]; then
9191 # we will publish the formula with the release tag
9292 tag="${{ inputs.release_tag }}"
93- version="${{ inputs.release_version }}"
9493 else
9594 tag="${{ github.ref_name }}"
96- version="0.0.${{ github.run_number }}"
9795 fi
9896 else
9997 echo "This is a PR event"
100- build_version="0.0.${{ github.event.number }}"
10198 clone_url=${{ github.event.pull_request.head.repo.clone_url }}
10299 branch="${{ github.event.pull_request.head.ref }}"
103100 default_branch="${{ github.event.pull_request.head.repo.default_branch }}"
104101 tag="${{ github.event.pull_request.head.ref }}"
105- version="0.0.${{ github.event.number }}"
106102 fi
107103 echo "Branch: ${branch}"
108104 echo "Clone URL: ${clone_url}"
109105 echo "Tag: ${tag}"
110106
107+ export BRANCH=${branch}
108+ export BUILD_VERSION=${build_version}
109+ export CLONE_URL=${clone_url}
110+ export COMMIT=${commit}
111+ export TAG=${tag}
112+
111113 mkdir -p build
112114 cmake \
113115 -B build \
114116 -S . \
115- -DBUILD_VERSION="${build_version}" \
116- -DFORMULA_VERSION="${version}" \
117- -DGITHUB_BRANCH="${branch}" \
118- -DGITHUB_COMMIT="${commit}" \
119- -DGITHUB_CLONE_URL="${clone_url}" \
120117 -DGITHUB_DEFAULT_BRANCH="${default_branch}" \
121- -DGITHUB_TAG="${tag}" \
122118 -DSUNSHINE_CONFIGURE_HOMEBREW=ON \
123119 -DSUNSHINE_CONFIGURE_ONLY=ON
124120
@@ -152,7 +148,7 @@ jobs:
152148 - name : Validate Homebrew Formula
153149 id : test
154150 if : matrix.release != true
155- uses : LizardByte/actions/actions/release_homebrew@v2025.627.30023
151+ uses : LizardByte/actions/actions/release_homebrew@v2025.703.21447
156152 with :
157153 formula_file : ${{ github.workspace }}/homebrew/sunshine.rb
158154 git_email : ${{ secrets.GIT_EMAIL }}
@@ -229,7 +225,7 @@ jobs:
229225 github.repository_owner == 'LizardByte' &&
230226 matrix.release &&
231227 inputs.publish_release == 'true'
232- uses : LizardByte/actions/actions/release_homebrew@v2025.627.30023
228+ uses : LizardByte/actions/actions/release_homebrew@v2025.703.21447
233229 with :
234230 formula_file : ${{ github.workspace }}/homebrew/sunshine-beta.rb
235231 git_email : ${{ secrets.GIT_EMAIL }}
0 commit comments