Make WordPress Core

Changeset 59526


Ignore:
Timestamp:
12/17/2024 01:26:04 PM (7 months ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-performance.yml

    r59525 r59526  
    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
Note: See TracChangeset for help on using the changeset viewer.