Skip to content

Commit

Permalink
use latest value
Browse files Browse the repository at this point in the history
  • Loading branch information
panchal-yash committed Aug 25, 2023
1 parent 5168b4b commit fc735e3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/PMM_PS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "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 }}"
Expand Down

0 comments on commit fc735e3

Please sign in to comment.