Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,15 +489,16 @@ type GitHubContext struct {
// but to use the Repo method instead.
RepositoryOwner string

RetentionDays int64
RunAttempt int64
RunID int64
RunNumber int64
ServerURL string
SHA string
StepSummary string
Workflow string
Workspace string
RetentionDays int64
RunAttempt int64
RunID int64
RunNumber int64
ServerURL string
SHA string
StepSummary string
TriggeringActor string
Workflow string
Workspace string

// Event is populated by parsing the file at EventPath, if it exists.
Event map[string]any
Expand Down Expand Up @@ -659,6 +660,9 @@ func (c *Action) Context() (*GitHubContext, error) {
if v := c.getenv("GITHUB_STEP_SUMMARY"); v != "" {
githubContext.StepSummary = v
}
if v := c.getenv("GITHUB_TRIGGERING_ACTOR"); v != "" {
githubContext.TriggeringActor = v
}
if v := c.getenv("GITHUB_WORKFLOW"); v != "" {
githubContext.Workflow = v
}
Expand Down
Loading