Skip to content

Retrieve action version #494

@averikitsch

Description

@averikitsch

Describe the enhancement
Method or an environment variable to retrieve action version specified in workflow.

Code Snippet
workflow.yml:

steps:
    - uses: actions/my-action@v2

action code:

const version = core.actionVersion();
// OR
const version  = process.env.ACTION_VERSION

Additional information
This is useful when collecting usage statistics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions