Update action

This commit is contained in:
2025-11-24 01:46:07 +03:00
parent 66375e6f6b
commit c7a295f392

13
main.go
View File

@@ -2,6 +2,7 @@ package main
import ( import (
"fmt" "fmt"
"log"
"os" "os"
) )
@@ -9,4 +10,16 @@ func main() {
for _, v := range os.Environ() { for _, v := range os.Environ() {
fmt.Println(v) 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))
} }