This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Metabase Sync (Direct Environment-to-Environment) | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| source_environment: | |
| description: 'Source environment to export from' | |
| type: environment | |
| required: true | |
| target_environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as changeCase from 'change-case'; | |
| // Laravel's like node js request data validator | |
| // Usage: | |
| // | |
| // let v = new Validator(body, { | |
| // index: 'required|string', | |
| // lang: 'string', | |
| // code: 'required|number', | |
| // phone_number: 'required|string|regex:/^\\+?[1-9]\\d{1,14}$/', |