From 90a5de2bdf2e5bcf1f925c913ce032c48de4fd8f Mon Sep 17 00:00:00 2001 From: etwodev Date: Sun, 5 Oct 2025 19:47:38 +0100 Subject: [PATCH] chore: update main.go --- go.mod | 2 ++ go.sum | 2 ++ main.go | 6 +++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 0c3a072..5937fa4 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module git.etwo.dev/actions/portable go 1.23.2 + +require github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index e69de29..7790d7c 100644 --- a/go.sum +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= diff --git a/main.go b/main.go index d200f94..41f5510 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,8 @@ import ( "os" "strconv" "time" + + "github.com/google/uuid" ) // ------------------------------- @@ -163,6 +165,8 @@ func Deploy(cfg Config) error { } } + id := uuid.New() + payload := map[string]interface{}{ "method": "repository", "type": "standalone", @@ -178,7 +182,7 @@ func Deploy(cfg Config) error { "TLSSkipVerify": cfg.TLSSkipVerify, "AutoUpdate": map[string]interface{}{ "Interval": "", - "Webhook": "", + "Webhook": id.String(), "ForceUpdate": false, "ForcePullImage": false, },