Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This tool is currently based on the existing documentation provided by 1team.

# Use production environment
# By default, set as true
production: Set the environment to be used as the production environment
production: Use production environment (true, default) or test environment (false)


```
Expand Down
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ inputs:

### Typical / recommended
production:
description: Set the environment to be used as the production environment
description: Use production environment (true, default) or test environment (false)
value: "true"

runs:
Expand All @@ -32,17 +32,17 @@ runs:
- name: Publish API
shell: bash
run: |
curl -L -O https://github.com/bcgov/gwa-cli/releases/download/v1.3.1/gwa_v1.3.1_linux_x64.zip
unzip gwa_v1.3.1_linux_x64.zip
curl -L -O https://github.com/bcgov/gwa-cli/releases/download/v3.0.7/gwa_Linux_x86_64.tgz
tar -xvzf gwa_Linux_x86_64.tgz

ENV="-P"
if [ "${{ inputs.production }}" == "false" ]; then
ENV="-T"
./gwa config set host api-gov-bc-ca.test.api.gov.bc.ca
fi

./gwa init ${ENV} \
--namespace=${{ inputs.namespace }} \
./gwa login \
--client-id=${{ inputs.client_id }} \
--client-secret=${{ inputs.client_secret }}

./gwa config set gateway ${{ inputs.namespace }}

./gwa pg ${{ inputs.file }}
Loading