Skip to content
server

GitHub Action

System Info GitHub Action

v1.3 Latest version

System Info GitHub Action

server

System Info GitHub Action

This action provides GitHub Actions runner OS information

Installation

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

              

- name: System Info GitHub Action

uses: ynab/[email protected]

Learn more about this action in ynab/system-info-action

Choose a version

System Info GitHub Action

This action provides GitHub Actions runner OS information

This repository was forked from https://github.com/ynab/system-info-action to support newer versions of macOS. Please consider sponsoring the original author.

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
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

Example usage

  - uses: ynab/[email protected]
    id: system-info
  - uses: actions/cache@v3
    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