Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.63 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.63 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

Alternatively, instead of providing iq-cli-version, you can provide the iq-cli-download-url parameter. In this case, the Sonatype CLI JAR file will be downloaded from the specified location URL.

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. Either this or iq-cli-download-url is required.

iq-cli-download-url
URL from where the IQ CLI jar file will be downloaded. Either this or iq-cli-version is 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.