Skip to content
server

GitHub Action

GitHub Actions runner OS system information

v1.3.0 Latest version

GitHub Actions runner OS system information

server

GitHub Actions runner OS system information

This action provides GitHub Actions runner OS information

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GitHub Actions runner OS system information

uses: kenchan0130/actions-system-info@v1.3.0

Learn more about this action in kenchan0130/actions-system-info

Choose a version

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.