Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.27 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.27 KB

Sonatype CLI Setup Action

A GitHub Action for setting up Sonatype CLI as a tool that is available for GitHub runners and subsequent actions. The action downloads and configures the requested version of the Sonatype CLI.

Usage Example

Here's an example of how the setup action can be used in your code. Note that this is a prerequisite for the Run Sonatype CLI action provided in this action set.

name: Sonatype Workflow
on: push
jobs:
  sonatype-cli:
    runs-on: ubuntu-latest
    steps:
      - name: Setup Sonatype CLI
        uses: sonatype/actions/setup-iq-cli@v1
        with:
          iq-cli-version: 1.179.0-01

Parameters

iq-cli-version
Sonatype CLI version to be used. It could be a full version (e.g. 1.179.0-01), a short version (e.g. 179) or latest. Required

Output

iq-cli-version
Semver valid version of the IQ CLI configured. It can be used as an input parameter for run-iq-cli.