Skip to content

Commit

Permalink
atlasaction: added dev-url input for schema/apply (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm committed Sep 22, 2024
1 parent 2cf7cd2 commit 3c2ece2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions atlasaction/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ func (a *Actions) SchemaApply(ctx context.Context) error {
ConfigURL: a.GetInput("config"),
Env: a.GetInput("env"),
Vars: a.GetVarsInput("vars"),
DevURL: a.GetInput("dev-url"),
URL: a.GetInput("url"),
To: a.GetInput("to"),
DryRun: a.GetBoolInput("dry-run"),
Expand Down
5 changes: 5 additions & 0 deletions schema/apply/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ inputs:
A JSON object containing variables to be used in the Atlas configuration file.
For example, `{"var1": "value1", "var2": "value2"}`.
required: false
dev-url:
description: |
The URL of the dev-database to use for analysis. For example: `mysql://root:pass@localhost:3306/dev`.
Read more about [dev-databases](https://atlasgo.io/concepts/dev-database).
required: false
to:
description: |
URL(s) of the desired schema state.
Expand Down

0 comments on commit 3c2ece2

Please sign in to comment.