mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 10:38:22 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59214 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
655125af1b
commit
e89ae0fa22
10
.github/workflows/reusable-performance.yml
vendored
10
.github/workflows/reusable-performance.yml
vendored
@ -29,7 +29,8 @@ on:
|
||||
secrets:
|
||||
CODEVITALS_PROJECT_TOKEN:
|
||||
description: 'The authorization token for https://www.codevitals.run/project/wordpress.'
|
||||
required: true
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
env:
|
||||
PUPPETEER_SKIP_DOWNLOAD: ${{ true }}
|
||||
@ -329,7 +330,12 @@ jobs:
|
||||
COMMITTED_AT: ${{ steps.commit-timestamp.outputs.result }}
|
||||
CODEVITALS_PROJECT_TOKEN: ${{ secrets.CODEVITALS_PROJECT_TOKEN }}
|
||||
HOST_NAME: "www.codevitals.run"
|
||||
run: node ./tests/performance/log-results.js $CODEVITALS_PROJECT_TOKEN trunk $GITHUB_SHA $BASE_SHA $COMMITTED_AT $HOST_NAME
|
||||
run: |
|
||||
if [ -z "$CODEVITALS_PROJECT_TOKEN" ]; then
|
||||
echo "Performance results could not be published. 'CODEVITALS_PROJECT_TOKEN' is not set" >> $GITHUB_OUTPUT
|
||||
exit 1
|
||||
fi
|
||||
node ./tests/performance/log-results.js $CODEVITALS_PROJECT_TOKEN trunk $GITHUB_SHA $BASE_SHA $COMMITTED_AT $HOST_NAME
|
||||
|
||||
- name: Ensure version-controlled files are not modified or deleted
|
||||
run: git diff --exit-code
|
||||
|
Loading…
x
Reference in New Issue
Block a user