Skip to content
database

GitHub Action

Setup-Oracle-SQLcl

v1.0.0 Latest version

Setup-Oracle-SQLcl

database

Setup-Oracle-SQLcl

Setup Oracle SQLcl

Installation

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

              

- name: Setup-Oracle-SQLcl

uses: gvenzl/[email protected]

Learn more about this action in gvenzl/setup-oracle-sqlcl

Choose a version

Setup Oracle SQLcl Action

GitHub release

Sets up the Oracle SQLcl command line tool. This action locates a given version of Oracle SQLcl, downloads it, and configures the PATH environment variable so that SQLcl can be invoked via sql. An environment variable SQLCL_HOME also points to the location where the given SQLcl version was installed.

Supported platforms:

  • Linux

  • MacOS

  • Windows

Inputs

Following inputs may be used as step.with keys:

Name Required Default Description

version

latest

A valid version of SQLcl from the download site.

setup-java-version

17

Automatically setup Oracle JDK with the chosen version. Set to false to skip it.

ℹ️
If you decide to skip the automatic Java setup then you’ll be responsible for configuring Java with version 11 as a minimum. We recommend using actions/setup-java.

Usage

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: gvenzl/setup-oracle-sqlcl@v1
      - name: Run SQLcl
        run: |
          ${SQLCL_HOME}/bin/sql <arguments>

Versions

The full list of supported SQLcl versions can be found here. Use version: latest (default & recommended) to always pull the latest release of SQLcl or use an explicit version of SQLcl to pin it for reproducible builds.