You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,21 +7,24 @@ Github Action as a wrapper for executing a single command in stackql, maps all s
7
7
Authentication to StackQL providers is done via environment variables source from GitHub Actions Secrets. To learn more about authentication, see the setup instructions for your provider or providers at the [StackQL Provider Registry Docs](https://stackql.io/registry).
8
8
9
9
## Inputs
10
-
-`query` - stackql query to execute **(need to supply either `query` or `query_file_path`)**
11
-
-`query_file_path` - stackql query file to execute **(need to supply either `query` or `query_file_path`)**
12
-
-`data_file_path` - (optional) path to data file to pass to the stackql query preprocessor (`json` or `jsonnet`)
13
-
-`vars` - (optional) comma delimited list of variables to pass to the stackql query preprocessor (supported with `jsonnet` config blocks or `jsonnet` data files only), accepts `var1=val1,var2=val2`, can be used to source environment variables into stackql queries
14
-
-`query_output` - (optional) output format of the stackql exec result, accepts `table`, `csv`, `json` and `text`, defaults to `json`
15
-
-`auth_obj_path` - (optional) the path of json file that stores stackql AUTH string **(only required when using non-standard environment variable names)**
16
-
-`auth_str` - (optional) stackql AUTH string **(only required when using non-standard environment variable names)**
17
-
-`is_command` - (optional defaults to 'false') set to true if the stackql execution is a command that does not return data
10
+
-**`query`** - stackql query to execute *(need to supply either __`query`__ or __`query_file_path`__)*
11
+
-**`query_file_path`** - stackql query file to execute *(need to supply either __`query`__ or __`query_file_path`__)*
12
+
-**`data_file_path`** - (optional) path to data file to pass to the stackql query preprocessor (`json` or `jsonnet`)
13
+
-**`dry_run`** - (optional) set to `true` to print the query that would be executed without actually executing it (default is `false`)
14
+
-**`vars`** - (optional) comma delimited list of variables to pass to the stackql query preprocessor (supported with `jsonnet` config blocks or `jsonnet` data files only), accepts `var1=val1,var2=val2`, can be used to source environment variables into stackql queries
15
+
-**`query_output`** - (optional) output format of the stackql exec result, accepts `table`, `csv`, `json` and `text`, defaults to `json`
16
+
-**`auth_obj_path`** - (optional) the path of json file that stores stackql AUTH string *(only required when using non-standard environment variable names)*
17
+
-**`auth_str`** - (optional) stackql AUTH string *(only required when using non-standard environment variable names)*
18
+
-**`is_command`** - (optional) set to `true` if the stackql execution is a command that does not return data (defaults to `false`)
19
+
-**`on_failure`** - (optional) behavior on a failure in query, supported values are `exit` (default) and `continue`
18
20
19
21
## Outputs
20
22
This action uses [setup-stackql](https://github.com/marketplace/actions/stackql-studio-setup-stackql), with use_wrapper set
21
23
to `true`, `stdout` and `stderr` are set to `exec-result` and `exec-error`
22
24
23
-
-`exec-result` - The STDOUT stream of the call to the `stackql` binary.
24
-
-`exec-error` - The STDERR stream of the call to the `stackql` binary.
25
+
-**`stackql-query-results`** - results from a stackql query (in the format specified)
26
+
-**`stackql-command-output`** - text output from a stackql command (a query that does not return data)
27
+
-**`stackql-query-error`** - error from a stackql query
0 commit comments