platform is undefined
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
platform is undefined
To Reproduce
Steps to reproduce the behavior:
- Create an index.js script that looks like:
import { platform } from "@actions/core";
console.log("platform is", platform);
- Create a new action that calls this script
- Invoke the action in another repo
- The console prints out "platform is undefined"
Expected behavior
platform should be defined and have arch info as well.
Desktop (please complete the following information):
- OS: Linux
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 reproducing the import shown in index.js and inspect the @actions/core package entry point and its exported platform surface. Done means platform is defined when the action runs and includes architecture information as described in the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100