diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 73bbaddf87..ca4a5c2788 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -522,10 +522,11 @@ jobs: # we will publish the formula with the release tag tag="${{ needs.setup_release.outputs.release_tag }}" else - tag="${{ github.sha }}" + tag="${{ github.ref_name }}" fi else echo "This is a PR event" + build_version="0.0.${{ github.event.number }}" clone_url=${{ github.event.pull_request.head.repo.clone_url }} branch="${{ github.event.pull_request.head.ref }}" default_branch="${{ github.event.pull_request.head.repo.default_branch }}" diff --git a/packaging/sunshine.rb b/packaging/sunshine.rb index 61164404b1..558291f253 100644 --- a/packaging/sunshine.rb +++ b/packaging/sunshine.rb @@ -5,7 +5,7 @@ class @PROJECT_NAME@ < Formula homepage "@PROJECT_HOMEPAGE_URL@" url "@GITHUB_CLONE_URL@", tag: "@GITHUB_TAG@" - version "@PROJECT_VERSION@" + version "@BUILD_VERSION@" license all_of: ["GPL-3.0-only"] head "@GITHUB_CLONE_URL@", branch: "@GITHUB_DEFAULT_BRANCH@"