Files
go-action/main.go
2025-11-24 01:46:07 +03:00

26 lines
355 B
Go

package main
import (
"fmt"
"log"
"os"
)
func main() {
for _, v := range os.Environ() {
fmt.Println(v)
}
giteaEnvFile, ok := os.LookupEnv("GITEA_ENV")
if !ok {
log.Fatalln("Gitea env file not found")
}
raw, err := os.ReadFile(giteaEnvFile)
if err != nil {
log.Fatalln("Gitea env file read error:", err)
}
fmt.Println(string(raw))
}