From 7cb69b00d0aad9d730c19e2a08af904ab4af58c2 Mon Sep 17 00:00:00 2001 From: pritchyspritch <47423802+pritchyspritch@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:27:01 +0000 Subject: [PATCH 1/2] Change boolean checks to strings --- action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index c17e46a..4eca090 100644 --- a/action.yml +++ b/action.yml @@ -27,10 +27,10 @@ inputs: type: string default: config.toml production: - description: Boolean stating you would like to push to production + description: String stating a boolean value you would like to push to production (booleans and types are not supported) required: false - type: boolean - default: true + type: string + default: 'true' runs: using: composite steps: @@ -53,7 +53,7 @@ runs: SPLUNK_ACS_TOKEN: ${{ inputs.splunk_acs_token }} SPLUNK_ACS_STACK: ${{ inputs.splunk_acs_stack }} run: sap --prod ${{ inputs.app_package_path }} --config-path ${{ inputs.config_toml_path }} - if: ${{ inputs.production == true }} + if: ${{ inputs.production == 'true' }} - name: package, validate, deploy (development) @@ -64,5 +64,5 @@ runs: SPLUNK_ACS_TOKEN: ${{ inputs.splunk_acs_token }} SPLUNK_ACS_STACK: ${{ inputs.splunk_acs_stack }} run: sap ${{ inputs.app_package_path }} --config-path ${{ inputs.config_toml_path }} - if: ${{ inputs.production == false }} + if: ${{ inputs.production == 'false' }} From 38491e6a429bf5d03eb05c12168b7b8ec6448e9d Mon Sep 17 00:00:00 2001 From: pritchyspritch <47423802+pritchyspritch@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:28:05 +0000 Subject: [PATCH 2/2] Update versions --- action.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 4eca090..020cb9b 100644 --- a/action.yml +++ b/action.yml @@ -43,7 +43,7 @@ runs: - name: Install splunk-app-packager shell: bash - run: pip install splunk-app-packager==0.0.3 + run: pip install splunk-app-packager==0.0.4 - name: package, validate, deploy (production) shell: bash diff --git a/pyproject.toml b/pyproject.toml index 25e44cd..4e8e673 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "splunk_app_packager" -version = "0.0.3" +version = "0.0.4" authors = [ { name="Sam Pritchard", email="47423802+pritchyspritch@users.noreply.github.com" }, { name="Ian Pearl", email="ian.pearl@education.gov.uk" },