From fe22c2f69cfdcf161dc593826129e9811027546e Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:21:23 -0400 Subject: [PATCH] fix(brew): update version and fix ci push events (#2708) --- .github/workflows/CI.yml | 3 ++- packaging/sunshine.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 73bbaddf87b..ca4a5c27889 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 61164404b12..558291f2535 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@"