From 07990fa8d9c04ea040b3f706eddd906841ca8f6f Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 22 Nov 2023 10:29:26 +0100 Subject: [PATCH] Add json tags to the Action struct --- pkg/ghactions/ghactions.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/ghactions/ghactions.go b/pkg/ghactions/ghactions.go index f8b9620..571f21d 100644 --- a/pkg/ghactions/ghactions.go +++ b/pkg/ghactions/ghactions.go @@ -136,10 +136,10 @@ func ModifyReferencesInYAML(ctx context.Context, ghcli *github.Client, node *yam // Action represents an action reference. type Action struct { - Action string - Owner string - Repo string - Ref string + Action string `json:"action"` + Owner string `json:"owner"` + Repo string `json:"repo"` + Ref string `json:"ref"` } // ListActionsInYAML returns a list of actions referenced in the given YAML structure.