Skip to content

Commit

Permalink
Build/Test Tools: Fix version number when downgrading WP in performan…
Browse files Browse the repository at this point in the history
…ce tests.

The tagged version on GitHub requires the trailing `.0`, but `wp core update` doesn't accept a trailing zero.

Follow-up to [59525].

See #62148.

git-svn-id: https://develop.svn.wordpress.org/trunk@59526 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
swissspidy committed Dec 17, 2024
1 parent e58bef6 commit 20c0327
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/reusable-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ jobs:
- name: Set the environment to the baseline version
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' }}
run: |
npm run env:cli -- core update --version=${{ env.BASE_TAG }} --force --path=/var/www/${{ env.LOCAL_DIR }}
VERSION="${{ env.BASE_TAG }}"
VERSION="${VERSION%.0}"
npm run env:cli -- core update --version=$VERSION --force --path=/var/www/${{ env.LOCAL_DIR }}
npm run env:cli -- core version --path=/var/www/${{ env.LOCAL_DIR }}
- name: Run any database upgrades
Expand Down

0 comments on commit 20c0327

Please sign in to comment.