Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from dobegor/patch-1
Browse files Browse the repository at this point in the history
Support initSql option
  • Loading branch information
joshuaavalon authored Jul 4, 2022
2 parents 3301084 + eb7ebf5 commit c3064cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- run: echo 'testing'
```
Currently, it supports `url`, `user`, `password`, and `locations`. `locations` are default to `filesystem:./sql`.
Currently, it supports `url`, `user`, `password`, `initSql` and `locations`. `locations` are default to `filesystem:./sql`.

For details, please check out Flyway [documentation].

Expand Down
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ inputs:
description: Comma-separated list of locations to scan recursively for migrations
required: true
default: filesystem:./sql
initSql:
description: The SQL statements to run to initialize a new database connection immediately after opening it
required: false
runs:
using: docker
image: docker://flyway/flyway:8
Expand All @@ -25,6 +28,7 @@ runs:
FLYWAY_USER: ${{ inputs.user }}
FLYWAY_PASSWORD: ${{ inputs.password }}
FLYWAY_LOCATIONS: ${{ inputs.locations }}
FLYWAY_INIT_SQL: ${{ inputs.initSql }}
args:
- migrate

0 comments on commit c3064cb

Please sign in to comment.