Skip to content

Commit

Permalink
Merge pull request #13 from stacklok/action-in-list
Browse files Browse the repository at this point in the history
Add full action name in list
  • Loading branch information
jhrozek authored Nov 22, 2023
2 parents 30218a2 + 1e7f5ef commit 68ab48b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkg/ghactions/ghactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ func ModifyReferencesInYAML(ctx context.Context, ghcli *github.Client, node *yam

// Action represents an action reference.
type Action struct {
Owner string
Repo string
Ref string
Action string
Owner string
Repo string
Ref string
}

// ListActionsInYAML returns a list of actions referenced in the given YAML structure.
Expand Down Expand Up @@ -183,9 +184,10 @@ func parseValue(val string) (*Action, error) {
}

return &Action{
Owner: owner,
Repo: repo,
Ref: ref,
Action: action,
Owner: owner,
Repo: repo,
Ref: ref,
}, nil
}

Expand Down

0 comments on commit 68ab48b

Please sign in to comment.