Skip to content
play

GitHub Action

Setup Score environment

v3.0.0 Latest version

Setup Score environment

play

Setup Score environment

Setup Score environment and add it to the PATH

Installation

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

              

- name: Setup Score environment

uses: score-spec/setup-score@v3.0.0

Learn more about this action in score-spec/setup-score

Choose a version

setup-score

This action sets up Score environment for use in GitHub actions.

It downloads and caches a version of Score CLI tools and adds them to PATH.

Usage

See action.yaml

Basic

steps:
  - uses: score-spec/setup-score@v2
    with:
      file: score-humanitec
      version: latest
      token: ${{ secrets.GITHUB_TOKEN }}
  - run: score-humanitec --version

Note: token should be set when the latest version is used. It is required by the action to pull the latest release details via GitHub API, and the token provided should have contents: read permission to fetch data from the GitHub.com.