Skip to content

Commit 14bdea5

Browse files
committed
Change to be the same and cat yml
Signed-off-by: Derek Ho <[email protected]>
1 parent 6de6331 commit 14bdea5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

action.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ runs:
138138
opensearch_minor_version=$(echo "$opensearch_version" | cut -d'.' -f2)
139139
if [ "$opensearch_major_version" -lt 2 ] || ([ "$opensearch_major_version" -eq 2 ] && [ "$opensearch_minor_version" -lt 12 ]); then
140140
echo "Running the command without -t option (OpenSearch version is $opensearch_version)"
141-
/bin/bash -c "yes | ./opensearch-${opensearch_version}-SNAPSHOT${{ inputs.port }}/plugins/opensearch-security/tools/install_demo_configuration.bat -y -i -s"
141+
/bin/bash -c "yes | ./opensearch-${opensearch_version}-SNAPSHOT${{ inputs.port }}/plugins/opensearch-security/tools/install_demo_configuration.bat"
142142
else
143143
echo "Running the command with -t option (OpenSearch version is $opensearch_version)"
144-
/bin/bash -c "yes | ./opensearch-${opensearch_version}-SNAPSHOT${{ inputs.port }}/plugins/opensearch-security/tools/install_demo_configuration.bat -t -y -i -s"
144+
/bin/bash -c "yes | ./opensearch-${opensearch_version}-SNAPSHOT${{ inputs.port }}/plugins/opensearch-security/tools/install_demo_configuration.bat -t"
145145
fi
146146
echo "plugins.security.unsupported.restapi.allow_securityconfig_modification: true" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
147147
shell: bash
@@ -159,6 +159,10 @@ runs:
159159
echo "http.port: ${{ inputs.port }}" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
160160
shell: bash
161161

162+
- if: always()
163+
run: cat ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
164+
shell: bash
165+
162166
# Run OpenSearch
163167
- name: Run OpenSearch with plugin on Linux
164168
if: ${{ runner.os == 'Linux'}}

0 commit comments

Comments
 (0)