2024-07-13 00:48:01 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "os"
|
|
|
|
|
|
|
|
type config struct {
|
2025-01-02 00:48:27 +00:00
|
|
|
HostName string
|
|
|
|
AppName string
|
|
|
|
PrivateKey string
|
|
|
|
LocalBranch string
|
|
|
|
RemoteBranch string
|
2024-07-13 00:48:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func readConfig() config {
|
|
|
|
return config{
|
2025-01-02 00:48:27 +00:00
|
|
|
HostName: os.Getenv("INPUT_HOST"),
|
|
|
|
AppName: os.Getenv("INPUT_APP"),
|
|
|
|
PrivateKey: os.Getenv("INPUT_PRIVATE-KEY"),
|
|
|
|
LocalBranch: os.Getenv("INPUT_SOURCE-BRANCH"),
|
2025-01-02 00:53:37 +00:00
|
|
|
RemoteBranch: os.Getenv("INPUT_TARGET-BRANCH"),
|
2024-07-13 00:48:01 +00:00
|
|
|
}
|
|
|
|
}
|