GitHub Actions
On this page
See the GitHub action here.
Set up Score with GitHub Actions #
Score is a CLI tool that helps manage developer workloads. Here is how to set up Score in your GitHub actions workflow.
Usage #
To use the Score GitHub action, add the following step to your workflow:
steps:
- uses: actions/setup-score@v2
with:
file: score-humanitec
version: '0.1.0'
This will download and cache the specified version of the score-humanitec
CLI and add it to $PATH
.
The action accepts the following inputs:
file
- The Score CLI tool to install. Supported options arescore-compose
,score-humanitec
, orscore-helm
. Required.version
- The version of the CLI to install. Supports semver ranges. Required.
Example #
Here is a complete example workflow:
name: Score Example
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Score
uses: actions/setup-score@v2
with:
file: score-humanitec
version: '0.1.0'
- name: Check version
run: score-humanitec --version
This installs version 0.1.0
of score-humanitec
, adds it to $PATH
, and runs score-humanitec --version
to verify it is set up correctly.
The action caches the Score binary so it won’t need to download it each run.
Now Score is installed and ready for use in any downstream steps.