Skip to content

liquibase/github-action-generator

Repository files navigation

GitHub Actions Generator

⚠️ VERSION SUPPORT NOTICE: This project and all generated individual Liquibase GitHub Actions will continue to be supported for Liquibase 4.x. Starting with Liquibase 5.x, they will no longer be supported.

Migration to liquibase/setup-liquibase: Available for Liquibase versions 4.32.0 and above. If you're using an older version, upgrade your Liquibase version first.

Migration Information

Current Approach (Liquibase 4.x)

# Individual actions - supported through Liquibase 4.x
- uses: liquibase-github-actions/update@v4.32.0
  with:
    changelogFile: 'changelog.xml'
    url: 'jdbc:h2:mem:test'

Recommended Approach (Liquibase 4.32.0+)

# Single setup action - requires Liquibase 4.32.0 or higher
- uses: liquibase/setup-liquibase@v1
  with:
    version: '4.32.0'  # Requires 4.32.0 or higher
    edition: 'oss'
- run: liquibase update --changelog-file=changelog.xml --url=jdbc:h2:mem:test

Migration Steps

  1. Check your Liquibase version: Ensure you're using 4.32.0 or higher
  2. If using older version: Update to 4.32.0+ first using the current micro actions
  3. Then migrate: Switch to setup-liquibase action

About This Repository (Historical)

Main repository for the tools and automation to generate Liquibase GitHub Actions at https://github.com/liquibase-github-actions. Uses generated protobuf files from https://github.com/liquibase/protobuf-generator to create an action for each Liquibase command.

graph LR
    A[Create Command List] --> |commands.json| B[Terraform]
    B --> |create liquibase-github-actions/*command* repo| C{Generate Action}
    C -->|calculate-checksum| D[Liquibase Calculate Checksum Action]
    C -->|changelog-sync| E[Liquibase Changelog Sync Action]
    C -->|...| F[Liquibase ... Action]
    C -->|vaildate| G[Liquibase Validate Action]
Loading

About

Main repository to generate GitHub Actions for liquibase-github-actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9