Skip to content

WalletConnect/refinery-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

refinery-action

Run RustDB Refinery CLI as a GitHub action

Usage

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.0

A specific version of Refinery CLI can be installed:

steps:
- uses: hashicorp/setup-terraform@v2
  with:
    refinery_version: 0.8.10

A 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'

Inputs

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 --

Outputs

This action does not configure any outputs directly.

Open Source Attribution

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

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Run RustDB RefineryCLI as a GitHub action

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published