Skip to content

Commit 20c0327

Browse files
committed
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
1 parent e58bef6 commit 20c0327

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/reusable-performance.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ jobs:
263263
- name: Set the environment to the baseline version
264264
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' }}
265265
run: |
266-
npm run env:cli -- core update --version=${{ env.BASE_TAG }} --force --path=/var/www/${{ env.LOCAL_DIR }}
266+
VERSION="${{ env.BASE_TAG }}"
267+
VERSION="${VERSION%.0}"
268+
npm run env:cli -- core update --version=$VERSION --force --path=/var/www/${{ env.LOCAL_DIR }}
267269
npm run env:cli -- core version --path=/var/www/${{ env.LOCAL_DIR }}
268270
269271
- name: Run any database upgrades

0 commit comments

Comments
 (0)