Skip to content

GitHub Actions runner OS system information

Actions
This action provides GitHub Actions runner OS information
v1.3.0
Latest
Star (9)

Tags

 (1)

GitHub Actions runner OS system information

Release Nigthly

This action provides GitHub Actions runner OS information.

Outputs

Name Description
cpu-core Logical CPU core size
cpu-model Logical CPU model name
hostname The host name of the operating system
kernel-release The kernel release
kernel-version The kernel version
name The operating system (distribution) name
platform The operating system identity
release The operating system (distribution) release
totalmem the total amount of system memory in bytes

If you want to see the specific output contents for each OS, you can check them at here.

Example usage

steps:
  - uses: actions/checkout@v4
  - uses: kenchan0130/actions-system-info@master
    id: system-info
  - uses: actions/cache@v4
    with:
      path: ~/.npm
      key: ${{ runner.os }}-${{ steps.system-info.outputs.release }}-node-${{ hashFiles('**/package-lock.json') }}
      restore-keys: ${{ runner.os }}-${{ steps.system-info.outputs.release }}-node-

The cache may be affected by internal changes in the OS version of the runner. In this example, adding the OS version of the runner to the key may solve this problem.

GitHub Actions runner OS system information is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This action provides GitHub Actions runner OS information
v1.3.0
Latest

Tags

 (1)

GitHub Actions runner OS system information is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.