-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathversion.go
More file actions
27 lines (23 loc) · 642 Bytes
/
version.go
File metadata and controls
27 lines (23 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main
// Version information - injected at build time via ldflags
var (
// Version is the semantic version of the action
Version = "dev"
// Commit is the git commit hash
Commit = "unknown"
)
// Action metadata
const (
// ActionName is the full name of the GitHub Action
ActionName = "appleboy/LLM-action"
// ActionShortName is the short name used in User-Agent
ActionShortName = "LLM-action"
)
// GetVersion returns the current version string
func GetVersion() string {
return Version
}
// GetUserAgent returns the User-Agent string for HTTP requests
func GetUserAgent() string {
return ActionShortName + "/" + Version
}