From 20c0327117378f37f96eb59a1d22e1bee86492d4 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 17 Dec 2024 13:26:04 +0000 Subject: [PATCH] Build/Test Tools: Fix version number when downgrading WP in performance 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 --- .github/workflows/reusable-performance.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-performance.yml b/.github/workflows/reusable-performance.yml index deb156897f066..e5c29aa0b1849 100644 --- a/.github/workflows/reusable-performance.yml +++ b/.github/workflows/reusable-performance.yml @@ -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