Make WordPress Core

Changeset 59217


Ignore:
Timestamp:
10/11/2024 07:02:30 PM (8 weeks ago)
Author:
joemcgill
Message:

Build/Test Tools: Fix Performance Test workflows on release branches.

This fixes an issue after [59170] that was causing the Performance Test workflows to fail on older branches since the CODEVITALS_PROJECT_TOKEN input value was marked as required but was not being passed.

This is a follow-up to [59214] and [59215].

Fixes #62153.
Props desrosj, joemcgill, flixos90, swissspidy.

File:
1 edited

Legend:

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

    r59215 r59217  
    3030      CODEVITALS_PROJECT_TOKEN:
    3131        description: 'The authorization token for https://www.codevitals.run/project/wordpress.'
    32         required: true
     32        required: false
    3333
    3434env:
     
    330330          CODEVITALS_PROJECT_TOKEN: ${{ secrets.CODEVITALS_PROJECT_TOKEN }}
    331331          HOST_NAME: "www.codevitals.run"
    332         run: node ./tests/performance/log-results.js $CODEVITALS_PROJECT_TOKEN trunk $GITHUB_SHA $BASE_SHA $COMMITTED_AT $HOST_NAME
     332        run: |
     333          if [ -z "$CODEVITALS_PROJECT_TOKEN" ]; then
     334            echo "Performance results could not be published. 'CODEVITALS_PROJECT_TOKEN' is not set" >> $GITHUB_OUTPUT
     335            exit 1
     336          fi
     337          node ./tests/performance/log-results.js $CODEVITALS_PROJECT_TOKEN trunk $GITHUB_SHA $BASE_SHA $COMMITTED_AT $HOST_NAME
    333338
    334339      - name: Ensure version-controlled files are not modified or deleted
Note: See TracChangeset for help on using the changeset viewer.