Skip to content

Retrieve action version #494

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:

constversion=core.actionVersion();// ORconstversion=process.env.ACTION_VERSION

Additional information
This is useful when collecting usage statistics.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions