Skip to content
database

GitHub Action

Liquibase Connect Action

v4.27.0 Latest version

Liquibase Connect Action

database

Liquibase Connect Action

[PRO] Tests the connection properties (url, username, password). Returns database's response, if any, with success or fai...

Installation

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

              

- name: Liquibase Connect Action

uses: liquibase-github-actions/[email protected]

Learn more about this action in liquibase-github-actions/connect

Choose a version

Liquibase Connect Action

Official GitHub Action to run Liquibase Connect in your GitHub Action Workflow. For more information on how connect works visit the Official Liquibase Documentation.

Connect

[PRO] Tests the connection properties (url, username, password). Returns database's response, if any, with success or failure.

Usage

steps:
- uses: actions/checkout@v3
- uses: liquibase-github-actions/[email protected]
  with:
    # The JDBC database connection URL
    # string
    # Required
    url: ""

    # The default catalog name to use for the database connection
    # string
    # Optional
    defaultCatalogName: ""

    # The default schema name to use for the database connection
    # string
    # Optional
    defaultSchemaName: ""

    # The JDBC driver class
    # string
    # Optional
    driver: ""

    # The JDBC driver properties file
    # string
    # Optional
    driverPropertiesFile: ""

    # Password to use to connect to the database
    # string
    # Optional
    password: ""

    # Username to use to connect to the database
    # string
    # Optional
    username: ""

Secrets

It is a good practice to protect your database credentials with GitHub Secrets

Optional Liquibase Global Inputs

The liquibase connect action accepts all valid liquibase global options as optional parameters. A full list is available in the official Liquibase Documentation.

Example

steps:
  - uses: actions/checkout@v3
  - uses: liquibase-github-actions/[email protected]
    with:
      url: ""
      headless: true
      licenseKey: ${{ secrets.LIQUIBASE_LICENSE_KEY }}
      logLevel: INFO

Feedback and Issues

This action is automatically generated. Please submit all feedback and issues with the generator repository.