Skip to content

Replace workflow-context action with GitHub's job context #167

Description

@joverlee521

Our workflow-context action was added because GitHub did not have access to a reusable workflow's context

This is necessary since GitHub currently does not support accessing the
reusable workflow's context within itself using a GitHub context variable.
According to the GitHub Action docs²:
When a reusable workflow is triggered by a caller workflow, the github
context is always associated with the caller workflow.
There are existing issues requesting this feature, so we can replace this
action when they get resolved:
- https://github.com/actions/toolkit/issues/1264
- https://github.com/actions/runner/issues/2417

GitHub has just resolved the upstream issue (actions/runner#2417 (comment)), so we can replace the custom action with the built-in job context.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions