Retrieve action version
Open
Nobody has claimed this yet.
enhancement
github
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the toolkit's existing core APIs and the GitHub Actions runtime context available to action code. Compare the workflow.yml example with the proposed core.actionVersion() and ACTION_VERSION entry points, then determine how the requested value could be exposed and tested. Done means an action can retrieve the version specified in its workflow for usage statistics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- devops, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100