Skip to content

Official Github Action to run Liquibase in your pipeline.

License

Notifications You must be signed in to change notification settings

nsanor/liquibase-github-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liquibase-github-action

Official Github Action to run Liquibase in your pipeline.

Usage

Basic Update

steps:
  - uses: actions/checkout@v2
  - uses: liquibase/liquibase-github-action@v1
    with:
      operation: 'update'
      classpath: 'example/changelogs'
      changeLogFile: 'samplechangelog.h2.sql'
      username: ${{ secrets.USERNAME }}
      password: ${{ secrets.PASSWORD }}
      url: ${{ secrets.URL }}

Optional Parameter Example:

steps:
  - uses: actions/checkout@v2
  - uses: liquibase/liquibase-github-action@v1
    with:
      operation: 'updateCount'
      classpath: 'example/changelogs'
      changeLogFile: 'samplechangelog.h2.sql'
      username: ${{ secrets.USERNAME }}
      password: ${{ secrets.PASSWORD }}
      url: ${{ secrets.URL }}
      count: 2

Required Inputs

operation, username, password, and url are required for every use.

The operation input expects one of the following:

  • update
  • updateCount
  • tag
  • updateToTag
  • rollback
  • rollbackCount
  • rollbackToDate
  • updateSQL
  • futureRollbackSQL
  • status
  • history
  • diff

Optional Inputs

classpath, changeLogFile, count, tag, date, and referenceUrl are optional inputs that may be required by some operations. The following operations have the subsequent required inputs:

updateCount

  • classpath
  • changeLogFile
  • count

tag

  • tag

updateToTag

  • classpath
  • changeLogFile
  • tag

rollback

  • classpath
  • changeLogFile
  • tag

rollbackCount

  • classpath
  • changeLogFile
  • count

rollbackToDate

  • classpath
  • changeLogFile
  • date

updateSQL

  • changeLogFile

futureRollbackSQL

  • classpath
  • changeLogFile

status

  • classpath
  • changeLogFile

diff

  • referenceUrl

Secrets

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

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing!

About

Official Github Action to run Liquibase in your pipeline.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 97.6%
  • Dockerfile 2.4%