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.
- uses: liquibase-github-actions/db-doc@v4.33.0
with:
# your parameters here- uses: liquibase/setup-liquibase@v1
with:
version: '4.33.0' # Requires 4.32.0 or higher
edition: 'oss'
- run: liquibase db-doc # add your parameters as CLI flags- Check your Liquibase version: Ensure you're using 4.32.0 or higher
- If using older version: Update to 4.32.0+ first using the current micro actions
- Then migrate: Switch to setup-liquibase action
Official GitHub Action to run Liquibase Db Doc in your GitHub Action Workflow. For more information on how db doc works visit the Official Liquibase Documentation.
Generates JavaDoc documentation for the existing database and changelogs
steps:
- uses: actions/checkout@v3
- uses: liquibase-github-actions/db-doc@v4.33.0
with:
# The root changelog file
# string
# Required
changelogFile: ""
# The directory where the documentation is generated
# string
# Required
outputDirectory: ""
# The JDBC database connection URL
# string
# Required
url: ""
# Context string to use for filtering
# string
# Optional
contextFilter: ""
# 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: ""
# Label expression to use for filtering
# string
# Optional
labelFilter: ""
# Password to use to connect to the database
# string
# Optional
password: ""
# Database schemas to include objects from in reporting
# string
# Optional
schemas: ""
# Username to use to connect to the database
# string
# Optional
username: ""
It is a good practice to protect your database credentials with GitHub Secrets
The liquibase db doc action accepts all valid liquibase global options as optional parameters. A full list is available in the official Liquibase Documentation.
steps:
- uses: actions/checkout@v3
- uses: liquibase-github-actions/db-doc@v4.33.0
with:
changelogFile: ""
outputDirectory: ""
url: ""
headless: true
licenseKey: ${{ secrets.LIQUIBASE_LICENSE_KEY }}
logLevel: INFOThis action is automatically generated. Please submit all feedback and issues with the generator repository.