Skip to content

Commit

Permalink
update nightly version info
Browse files Browse the repository at this point in the history
Signed-off-by: FingerLeader <[email protected]>
  • Loading branch information
FingerLeader committed Jul 15, 2024
1 parent 08bcd7c commit 51039b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- "v*"
- "nightly-*"

jobs:
goreleaser_and_TiUP:
Expand Down Expand Up @@ -72,13 +71,10 @@ jobs:
'linux arm64'
)
# check if the tag name is nightly
if [[ "$REL_VER" == *nightly-* ]]; then
export VER="${REL_VER}"
else
# skip the first letter v in the tag name
export VER="${REL_VER:1}"
fi
for item in "${matrix[@]}" ; do
os_arch=($item)
os=(${os_arch[0]})
Expand All @@ -97,7 +93,7 @@ jobs:
done
create-pr:
if: startsWith(github.ref, 'refs/tags/v')
if: contains(github.ref, 'nightly') == false
runs-on: ubuntu-latest
needs: ["goreleaser_and_TiUP"]
steps:
Expand Down
1 change: 0 additions & 1 deletion internal/cli/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func VersionCmd(h *internal.Helper) *cobra.Command {

// Format formats a version string with the given information.
func Format(ver, commit, buildDate string) string {
fmt.Println("ver:", ver)
if ver == version.DevVersion && buildDate == "" && commit == "" {
return fmt.Sprintf("%s version (built from source)", config.CliName)
}
Expand Down

0 comments on commit 51039b4

Please sign in to comment.