Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform is undefined #1630

Open
domino14 opened this issue Jan 23, 2024 · 1 comment
Open

platform is undefined #1630

domino14 opened this issue Jan 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@domino14
Copy link

Describe the bug

platform is undefined

To Reproduce
Steps to reproduce the behavior:

  1. Create an index.js script that looks like:
import { platform } from "@actions/core";

console.log("platform is", platform);
  1. Create a new action that calls this script
  2. Invoke the action in another repo
  3. 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
@domino14 domino14 added the bug Something isn't working label Jan 23, 2024
@AnHeuermann
Copy link

I have the same issue in a TypeScript action.

The documentation has an example how to use it, but indeed it's not defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants