2023-04-17 13:52:29 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
gha "github.com/sethvargo/go-githubactions"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2024-08-12 16:09:31 +08:00
|
|
|
|
2023-04-17 13:52:29 +08:00
|
|
|
username := gha.GetInput("username")
|
|
|
|
fmt.Printf("username is %s\n", username)
|
|
|
|
|
|
|
|
gha.SetOutput("time", time.Now().Format("2006-01-02 15:04:05"))
|
|
|
|
}
|