im-open/Run Flyway Command

Runs the flyway command line tool against the given database

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 8, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: im-open/run-flyway-command@a498fe67ce69a973484c9339edb557bcfe87c810 # v1.5.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
db-server-nameThe database server name.yes
db-server-portThe port the database server listens on.no1433
db-nameThe name of the database to run flyway against.yes
trust-server-certificateA boolean that controls whether or not to validate the SQL Server TLS certificate.nofalse
migration-files-pathThe path to the base directory containing the migration files to process with /src/run-flyway.ps1yes
flyway-commandThe flyway command to run; e.g migrate, validate, etc.yes
migration-history-tableThe table where the migration history lives. This is most likely dbo.MigrationHistory or Flyway.MigrationHistory.yes
baseline-versionThe baseline version to send to the flyway command.no0
managed-schemasA comma separated list of schemas that are to be managed by Flyway.MigrationHistory.yes
enable-out-of-orderA switch that allows new migrations that are a lower version number than a current migration to be run.nofalse
validate-migrationsA switch determining whether flyway should validate the migration scripts before running them.notrue
use-integrated-securityA switch defining whether or not to use integrated security. If not provided, a password should be.nofalse
use-azure-service-principalA switch to indicate that an Azure Active Directory Service Principal will be used to authenticate with the SQL Server.nofalse
use-azure-default-credentialA switch to indicate that an Azure Active Directory Credential will be used to authenticate with the SQL Server. This credential includes any credential in the Azure Identity Providernofalse
usernameThe username of the user making the changes, which is put into the MigrationHistory table, and also to login with if not using integrated security. This should be the Service Principal ID if use-azure-service-principal is set to true.no
passwordThe password for the user making changes if not using integrated security. This should be the Service Principal Secret if use-azure-service-principal is set to true.no
extra-parametersA string containing anything extra that should be added to the flyway command.no

no outputs