Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added dry run
  • Loading branch information
jeffreyaven committed Apr 27, 2024
commit 529a83d161ddebb459b43aac60a80f0f5c942ac7
2 changes: 1 addition & 1 deletion .github/workflows/stackql-exec-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
#
# run a query using the `query_file_path`, `data_file_path` and `vars` inputs (dry-run)
#
- name: google query example with query file and data file using vars
- name: google query example with query file and data file using vars (dry-run)
id: stackql-query-file-with-data-file-and-vars-dry-run
uses: ./
with:
Expand Down
18 changes: 9 additions & 9 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ async function execStackQLQuery(core, command, isCommand, onFailure, dryRun) {
}

// dry-run should return stderr only
if (dryRun) {
if (stderr) {
core.setOutput('stackql-query-results', stderr);
core.info(`dry-run output:\n${stderr}`);
} else {
core.setFailed(`stackql query failed to render`);
}
return;
}
// if (dryRun) {
// if (stderr) {
// core.setOutput('stackql-query-results', stderr);
// core.info(`dry-run output:\n${stderr}`);
// } else {
// core.setFailed(`stackql query failed to render`);
// }
// return;
// }

if (stdout) {
// queries should return data to stdout
Expand Down