Make WordPress Core

Changeset 59214


Ignore:
Timestamp:
10/11/2024 03:55:21 PM (2 months ago)
Author:
joemcgill
Message:

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

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

Fixes #62153.
Props desrosj, joemcgill, flixos90.

File:
1 edited

Legend:

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

    r59208 r59214  
    3030      CODEVITALS_PROJECT_TOKEN:
    3131        description: 'The authorization token for https://www.codevitals.run/project/wordpress.'
    32         required: true
     32        required: false
     33        default: ''
    3334
    3435env:
     
    330331          CODEVITALS_PROJECT_TOKEN: ${{ secrets.CODEVITALS_PROJECT_TOKEN }}
    331332          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
     333        run: |
     334          if [ -z "$CODEVITALS_PROJECT_TOKEN" ]; then
     335            echo "Performance results could not be published. 'CODEVITALS_PROJECT_TOKEN' is not set" >> $GITHUB_OUTPUT
     336            exit 1
     337          fi
     338          node ./tests/performance/log-results.js $CODEVITALS_PROJECT_TOKEN trunk $GITHUB_SHA $BASE_SHA $COMMITTED_AT $HOST_NAME
    333339
    334340      - name: Ensure version-controlled files are not modified or deleted
Note: See TracChangeset for help on using the changeset viewer.