diff --git a/.github/workflows/PMM_PS.yaml b/.github/workflows/PMM_PS.yaml index 7d67c82..3bdcd75 100644 --- a/.github/workflows/PMM_PS.yaml +++ b/.github/workflows/PMM_PS.yaml @@ -24,19 +24,29 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 20 env: - PS_VERSION: ${{ github.event.inputs.ps_version || '8.0.32-24' }} PS_GLIBC: ${{ github.event.inputs.ps_glibc || '2.28' }} PMM_IMAGE: ${{ github.event.inputs.pmm_image || 'perconalab/pmm-server:dev-latest' }} steps: - uses: actions/checkout@v2 + - name: PS_VERSION ENV Setup + run: | + if [[ -n "${{ github.event.inputs.ps_version }}" ]]; then + PS_VERSION="${{ github.event.inputs.ps_version }}" + else + wget https://raw.githubusercontent.com/Percona-QA/package-testing/master/VERSIONS + PS_VERSION="$(grep 'PS80_VER' VERSIONS | cut -d = -f 2)" + fi + echo "PS_VERSION=${PS_VERSION}" >> $GITHUB_ENV + - name: Concatenate values to environment file run: | echo "PS_TARBALL_PATH=https://downloads.percona.com/downloads/TESTING/ps-${{env.PS_VERSION}}/Percona-Server-${{env.PS_VERSION}}-Linux.x86_64.glibc${{env.PS_GLIBC}}.tar.gz}}" >> $GITHUB_ENV echo "PMM_QA_REPO_URL=https://github.com/percona/pmm-qa/" >> $GITHUB_ENV echo "PMM_QA_REPO_BRANCH=main" >> $GITHUB_ENV + - name: Check environment variable is available run: | echo "${{ env.PS_TARBALL_PATH }}"