diff --git a/.github/workflows/plugin_install.yml b/.github/workflows/plugin_install.yml index 2b1367a093..17c8b8721b 100644 --- a/.github/workflows/plugin_install.yml +++ b/.github/workflows/plugin_install.yml @@ -36,10 +36,17 @@ jobs: run: mv ./build/distributions/${{ env.PLUGIN_NAME }}-*.zip ${{ env.PLUGIN_NAME }}.zip shell: bash + - name: Populate password file + run: | + echo installPassword > ./config/initialAdminPassword.txt + cd config + cat initialAdminPassword.txt + + + - name: Create Setup Script if: ${{ runner.os == 'Linux' }} run: | - export initialAdminPassword=installPassword cat > setup.sh <<'EOF' chmod +x ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/plugins/${{ env.PLUGIN_NAME }}/tools/install_demo_configuration.sh /bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/plugins/${{ env.PLUGIN_NAME }}/tools/install_demo_configuration.sh" @@ -48,7 +55,6 @@ jobs: - name: Create Setup Script if: ${{ runner.os == 'Windows' }} run: | - set initialAdminPassword=installPassword New-Item .\setup.bat -type file Set-Content .\setup.bat -Value "powershell.exe .\opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT\plugins\${{ env.PLUGIN_NAME }}\tools\install_demo_configuration.bat -i -c -y" Get-Content .\setup.bat