Run RustDB Refinery CLI as a GitHub action
The default configuration installs the latest version of Refinery CLI and expects a refinery.toml configuration file in the root directory:
steps:
- uses: walletconnect/refinery-action@1.0.0A specific version of Refinery CLI can be installed:
steps:
- uses: hashicorp/setup-terraform@v2
with:
refinery_version: 0.8.10A different name for the configuration file can be specified:
steps:
- uses: hashicorp/setup-terraform@v2
with:
config: './config/refinery.toml'You can specify the name of an environment variable that contains the database URI:
steps:
- uses: hashicorp/setup-terraform@v2
with:
db_uri_env_var: 'DATABASE_URL'The action supports the following inputs:
| Name | Description | Default |
|---|---|---|
migrations_directory |
Directory to run the action on, from the repo root | ./migrations |
config |
Path to the configuration file | ./refinery.toml |
db_uri_env_var |
Name of the environment variable that contains the database URI | -- |
single_transactions |
Run migrations in a single transaction | false |
target |
Migrate to the specified target version | -- |
additional_args |
Additional arguments to pass to the Refinery CLI | -- |
refinery_version |
Refinery CLI version to install | latest |
github_token |
GitHub token used for making authenticated requests to the GitHub API and avoid rate limiting | -- |
This action does not configure any outputs directly.
This action uses the following open source projects:
| Name | License |
|---|---|
| refinery | MIT |
| bash | GPL 3.0 or later |
| curl | curl license |
| git | GPL 2.0 or later |
| jq | MIT |
This project is licensed under the MIT License - see the LICENSE file for details
