Skip to content

Commit b102971

Browse files
authored
Merge pull request #27 from stackql/feature/updates
darwin updates
2 parents 7e7b290 + 792df74 commit b102971

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Setup StackQL](https://github.com/stackql/setup-stackql/actions/workflows/setup-stackql.yml/badge.svg)](https://github.com/stackql/setup-stackql/actions/workflows/setup-stackql.yml)
1+
[![Setup StackQL](https://github.com/stackql/setup-stackql/actions/workflows/setup-stackql-test.yml/badge.svg)](https://github.com/stackql/setup-stackql/actions/workflows/setup-stackql-test.yml)
22

33
# setup-stackql
44

@@ -13,7 +13,7 @@ Authentication to StackQL providers is done via environment variables source fro
1313
The following example demonstrate the use of the `stackql/setup-stackql` action in a GitHub Actions workflow, demonstrating how to use the action to install the `stackql` CLI and then use it to execute a StackQL query.
1414

1515
### GitHub Example
16-
Check the "Use GitHub Provider" step in [setup-stackql.yml](.github/workflows/setup-stackql.yml) for the working example, for more information on the GitHub provider for StackQL, see the [GitHub Provider Docs](https://registry.stackql.io/github).
16+
Check the "Use GitHub Provider" step in [setup-stackql-test.yml](.github/workflows/setup-stackql-test.yml) for the working example, for more information on the GitHub provider for StackQL, see the [GitHub Provider Docs](https://registry.stackql.io/github).
1717

1818
```yaml
1919
- name: setup StackQL
@@ -30,7 +30,7 @@ Check the "Use GitHub Provider" step in [setup-stackql.yml](.github/workflows/se
3030
```
3131
3232
### Google Example
33-
Check the "Use Google Provider" step in [setup-stackql.yml](.github/workflows/setup-stackql.yml) for the working example, for more information on the Google provider for StackQL, see the [Google Provider Docs](https://registry.stackql.io/google).
33+
Check the "Use Google Provider" step in [setup-stackql-test.yml](.github/workflows/setup-stackql-test.yml) for the working example, for more information on the Google provider for StackQL, see the [Google Provider Docs](https://registry.stackql.io/google).
3434
3535
```yaml
3636
- name: setup StackQL
@@ -46,14 +46,14 @@ Check the "Use Google Provider" step in [setup-stackql.yml](.github/workflows/se
4646
```
4747
4848
## Inputs
49-
- `use_wrapper` - (optional) Whether to install a wrapper to wrap subsequent calls of
49+
- __`use_wrapper`__ - (optional) Whether to install a wrapper to wrap subsequent calls of
5050
the `stackql` binary and expose its STDOUT, STDERR, and exit code as outputs
5151
named `stdout`, `stderr`, and `exitcode` respectively. Defaults to `false`.
5252

5353
## Outputs
5454
This action does not configure any outputs directly. However, when you set the `use_wrapper` input
5555
to `true`, the following outputs are available for subsequent steps that call the `stackql` binary:
5656

57-
- `stdout` - The STDOUT stream of the call to the `stackql` binary.
58-
- `stderr` - The STDERR stream of the call to the `stackql` binary.
59-
- `exitcode` - The exit code of the call to the `stackql` binary.
57+
- __`stdout`__ - The STDOUT stream of the call to the `stackql` binary.
58+
- __`stderr`__ - The STDERR stream of the call to the `stackql` binary.
59+
- __`exitcode`__ - The exit code of the call to the `stackql` binary.

dist/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6861,19 +6861,19 @@ async function setup() {
68616861
core.debug(`path to cli: ${cliPath}`);
68626862

68636863
// set perms and make executable
6864-
if(osPlatform != 'darwin'){
6864+
if(osPlatform !== 'darwin'){
68656865
core.debug(`updating permissions for ${cliPath}...`);
68666866
fs.chmodSync(cliPath, '777');
68676867
core.debug(`adding ${cliPath} to the path...`);
68686868
core.addPath(cliPath)
68696869
await makeExecutable(cliPath, osPlatform)
68706870
}
68716871

6872-
const wrapper = core.getInput('use_wrapper') === 'true';
6873-
6874-
if(wrapper){
6875-
core.info('installing wrapper...')
6876-
await installWrapper(cliPath)
6872+
// Check if wrapper is needed and if it's not Darwin
6873+
const useWrapper = core.getInput('use_wrapper') === 'true';
6874+
if(useWrapper && osPlatform !== 'darwin'){
6875+
core.info('installing wrapper...');
6876+
await installWrapper(cliPath);
68776877
}
68786878
core.info(`successfully setup stackql at ${cliPath}`);
68796879

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,19 @@ async function setup() {
112112
core.debug(`path to cli: ${cliPath}`);
113113

114114
// set perms and make executable
115-
if(osPlatform != 'darwin'){
115+
if(osPlatform !== 'darwin'){
116116
core.debug(`updating permissions for ${cliPath}...`);
117117
fs.chmodSync(cliPath, '777');
118118
core.debug(`adding ${cliPath} to the path...`);
119119
core.addPath(cliPath)
120120
await makeExecutable(cliPath, osPlatform)
121121
}
122122

123-
const wrapper = core.getInput('use_wrapper') === 'true';
124-
125-
if(wrapper){
126-
core.info('installing wrapper...')
127-
await installWrapper(cliPath)
123+
// Check if wrapper is needed and if it's not Darwin
124+
const useWrapper = core.getInput('use_wrapper') === 'true';
125+
if(useWrapper && osPlatform !== 'darwin'){
126+
core.info('installing wrapper...');
127+
await installWrapper(cliPath);
128128
}
129129
core.info(`successfully setup stackql at ${cliPath}`);
130130

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-stackql",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)