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 78e478c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .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 "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 78e478c

Please sign in to comment.