Skip to content

Add missing GitHub Actions default environment variables to GitHubActions provider #4891

@devlead

Description

@devlead

Cake's GitHub Actions provider does not expose several default environment variables documented by GitHub.

Missing from GitHubActionsWorkflowInfo

Environment variable Property
GITHUB_ACTION_REPOSITORY ActionRepository
GITHUB_ACTOR_ID ActorId
GITHUB_REPOSITORY_ID RepositoryId
GITHUB_REPOSITORY_OWNER_ID RepositoryOwnerId
GITHUB_RETENTION_DAYS RetentionDays
GITHUB_TRIGGERING_ACTOR TriggeringActor
GITHUB_WORKFLOW_REF WorkflowRef
GITHUB_WORKFLOW_SHA WorkflowSha

Missing from GitHubActionsRunnerInfo

Environment variable Property
RUNNER_DEBUG IsDebug
RUNNER_ENVIRONMENT Environment (GitHubActionsRunnerEnvironment enum)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions