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

Add platform info utilities #1

Closed
wants to merge 5 commits into from

Conversation

nikolai-laevskii
Copy link

@nikolai-laevskii nikolai-laevskii commented Aug 10, 2023

Adds shorthands for getting information about platform action is running on:

import { platform } from '@actions/core'

platform.platform // 'win32'
platform.arch // 'x64'
platform.isWindows // true
platform.isMacOS // false
platform.isLinux // false

const {
  name, // Microsoft Windows 11 Enterprise
  version, // 10.0.22621
} = await platform.getInfo()

Some checks are failing but not due changes. Tests and documentation are updated.

@nikolai-laevskii nikolai-laevskii self-assigned this Aug 10, 2023
packages/helpers/README.md Outdated Show resolved Hide resolved
packages/helpers/README.md Outdated Show resolved Hide resolved
@nikolai-laevskii
Copy link
Author

actions#1551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants