1
0
Fork 0
mirror of https://code.forgejo.org/actions/ovh-dns-update synced 2025-03-15 06:46:59 +01:00

adjust github output

This commit is contained in:
oliverpool 2023-08-18 16:15:07 +02:00
parent 4486ccbb21
commit c1afe4c4a7

View file

@ -39,6 +39,8 @@ func TestRun(t *testing.T) {
t.Cleanup(s.Close) t.Cleanup(s.Close)
action := githubactions.New(githubactions.WithGetenv(func(key string) string { action := githubactions.New(githubactions.WithGetenv(func(key string) string {
switch key { switch key {
case "GITHUB_OUTPUT":
return os.Getenv(key)
case "INPUT_OVH-ENDPOINT": case "INPUT_OVH-ENDPOINT":
return "http://" + s.Listener.Addr().String() return "http://" + s.Listener.Addr().String()
} }