This action gets the config file from environment variables and run flyway migrate
command.
It runs two scripts:
pre-migration: clean localfiles without migration post-migration: grants access to tables and delete history
Note: Please check the these scripts before using, I will be happy to help you if you have any issue
Required Content of flyway.conf in base64 file. Default ""
.
Uses cat flyway.conf | base64
to create the flyway_conf_sha
No Required Path to migrations. Default "./flyway/sql"
.
No Required Bash file in base64 to run before migration.
No Required Bash file in base64 to run after migration.
uses: kurkop/flyway-postgres-action@master
with:
flyway_conf_sha: ${{ secrets.FLYWAY_CONF }}