From 0c0b4c46107b0203d9412bfbca5e72dca6c0211e Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 16 Jun 2024 20:23:51 -0400 Subject: [PATCH] fix(brew): remove v prefix from version number (#2710) --- .github/workflows/CI.yml | 4 ++++ packaging/sunshine.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ca4a5c27889..abb4d2586a3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -521,8 +521,10 @@ jobs: if [ "${{ matrix.release }}" == "true" ]; then # we will publish the formula with the release tag tag="${{ needs.setup_release.outputs.release_tag }}" + version="${{ needs.setup_release.outputs.release_version }}" else tag="${{ github.ref_name }}" + version="0.0.${{ github.run_number }}" fi else echo "This is a PR event" @@ -531,6 +533,7 @@ jobs: branch="${{ github.event.pull_request.head.ref }}" default_branch="${{ github.event.pull_request.head.repo.default_branch }}" tag="${{ github.event.pull_request.head.ref }}" + version="0.0.${{ github.event.number }}" fi echo "Branch: ${branch}" echo "Clone URL: ${clone_url}" @@ -540,6 +543,7 @@ jobs: cd build cmake \ -DBUILD_VERSION="${build_version}" \ + -DFORMULA_VERSION="${version}" \ -DGITHUB_BRANCH="${branch}" \ -DGITHUB_COMMIT="${commit}" \ -DGITHUB_CLONE_URL="${clone_url}" \ diff --git a/packaging/sunshine.rb b/packaging/sunshine.rb index 558291f2535..282b4e6928a 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 "@BUILD_VERSION@" + version "@FORMULA_VERSION@" license all_of: ["GPL-3.0-only"] head "@GITHUB_CLONE_URL@", branch: "@GITHUB_DEFAULT_BRANCH@"