File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ The following variables are available on all hooks:
6969- ` GH_OST_INSPECTED_HOST `
7070- ` GH_OST_EXECUTING_HOST `
7171- ` GH_OST_HOOKS_HINT ` - copy of ` --hooks-hint ` value
72+ - ` GH_OST_DRY_RUN ` - whether or not the ` gh-ost ` run is a dry run
7273
7374The following variable are available on particular hooks:
7475
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ func (this *HooksExecutor) applyEnvironmentVariables(extraVariables ...string) [
6464 env = append (env , fmt .Sprintf ("GH_OST_INSPECTED_HOST=%s" , this .migrationContext .GetInspectorHostname ()))
6565 env = append (env , fmt .Sprintf ("GH_OST_EXECUTING_HOST=%s" , this .migrationContext .Hostname ))
6666 env = append (env , fmt .Sprintf ("GH_OST_HOOKS_HINT=%s" , this .migrationContext .HooksHintMessage ))
67+ env = append (env , fmt .Sprintf ("GH_OST_DRY_RUN=%t" , this .migrationContext .Noop ))
6768
6869 for _ , variable := range extraVariables {
6970 env = append (env , variable )
You can’t perform that action at this time.
0 commit comments