Debug package action

This commit is contained in:
dragon 2024-04-25 13:46:19 +08:00
parent 07ffc47ecd
commit 6e210136a1
2 changed files with 2 additions and 2 deletions

View File

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

View File

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