Skip to content

🚀[Feature]: Context Awareness - GitHub Action - Workflow #359

@MariusStorhaug

Description

Description

TODO: Add spec for how functions would infer context in a workflow.

When? $env:GITHUB_ACTIONS

Developer Experience

Without context inference:

$owner = $env:GITHUB_REPOSITORY_OWNER
$repo = $env:GITHUB_REPOSITORY_NAME
$runId = $env:GITHUB_RUN_ID
Get-GitHubArtifact -Owner $owner -Repository $repo -WorkflowRunID $runId -Name '*-TestResults'

With context inference:

# Function sees $env:GITHUB_ACTIONS, so infers
Get-GitHubArtifact -Name '*-TestResults'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions