Debug package action

This commit is contained in:
dragon 2024-04-25 13:29:51 +08:00
parent 7c8a7ff93a
commit 07ffc47ecd
2 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,9 @@ jobs:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(go run pkg/util/version/version.go)
run: |
echo 'package main; import "fmt"; import "pkg/util/version"; func main() { fmt.Println(version.Full()) }' > print_version.go
echo ::set-output name=VERSION::$(go run print_version.go)
- name: Print the version
run: |

View File

@ -14,7 +14,7 @@
package version
var version = "v0.1.1"
var version = "v0.1.0"
func Full() string {
return version