fix(brew): update version and fix ci push events (#2708)
This commit is contained in:
@@ -522,10 +522,11 @@ jobs:
|
|||||||
# we will publish the formula with the release tag
|
# we will publish the formula with the release tag
|
||||||
tag="${{ needs.setup_release.outputs.release_tag }}"
|
tag="${{ needs.setup_release.outputs.release_tag }}"
|
||||||
else
|
else
|
||||||
tag="${{ github.sha }}"
|
tag="${{ github.ref_name }}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "This is a PR event"
|
echo "This is a PR event"
|
||||||
|
build_version="0.0.${{ github.event.number }}"
|
||||||
clone_url=${{ github.event.pull_request.head.repo.clone_url }}
|
clone_url=${{ github.event.pull_request.head.repo.clone_url }}
|
||||||
branch="${{ github.event.pull_request.head.ref }}"
|
branch="${{ github.event.pull_request.head.ref }}"
|
||||||
default_branch="${{ github.event.pull_request.head.repo.default_branch }}"
|
default_branch="${{ github.event.pull_request.head.repo.default_branch }}"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ class @PROJECT_NAME@ < Formula
|
|||||||
homepage "@PROJECT_HOMEPAGE_URL@"
|
homepage "@PROJECT_HOMEPAGE_URL@"
|
||||||
url "@GITHUB_CLONE_URL@",
|
url "@GITHUB_CLONE_URL@",
|
||||||
tag: "@GITHUB_TAG@"
|
tag: "@GITHUB_TAG@"
|
||||||
version "@PROJECT_VERSION@"
|
version "@BUILD_VERSION@"
|
||||||
license all_of: ["GPL-3.0-only"]
|
license all_of: ["GPL-3.0-only"]
|
||||||
head "@GITHUB_CLONE_URL@", branch: "@GITHUB_DEFAULT_BRANCH@"
|
head "@GITHUB_CLONE_URL@", branch: "@GITHUB_DEFAULT_BRANCH@"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user