Update matrix-org/github-action-benchmark (#8774)
* Update cypress.yaml * Update cypress.yaml * Update cypress.yaml
This commit is contained in:
parent
9c44e6c1de
commit
f65e8d088e
1 changed files with 4 additions and 4 deletions
8
.github/workflows/cypress.yaml
vendored
8
.github/workflows/cypress.yaml
vendored
|
@ -40,7 +40,7 @@ jobs:
|
||||||
echo "COMMIT_INFO_AUTHOR=$(git log --format='%an' -n 1 ${{ github.event.workflow_run.head_sha }})" >> $GITHUB_ENV
|
echo "COMMIT_INFO_AUTHOR=$(git log --format='%an' -n 1 ${{ github.event.workflow_run.head_sha }})" >> $GITHUB_ENV
|
||||||
echo "COMMIT_INFO_EMAIL=$(git log --format='%ae' -n 1 ${{ github.event.workflow_run.head_sha }})" >> $GITHUB_ENV
|
echo "COMMIT_INFO_EMAIL=$(git log --format='%ae' -n 1 ${{ github.event.workflow_run.head_sha }})" >> $GITHUB_ENV
|
||||||
# Only run Percy when it is demanded or on develop
|
# Only run Percy when it is demanded or on develop
|
||||||
if [[ "${{ (contains(fromJSON(steps.prdetails.outputs.data).labels.*.name, 'X-Needs-Percy') || github.ref == 'refs/heads/develop') }}" == "false" ]]; then
|
if [[ "${{ (contains(fromJSON(steps.prdetails.outputs.data).labels.*.name, 'X-Needs-Percy') || github.event.workflow_run.event != 'pull_request') }}" == "false" ]]; then
|
||||||
echo "PERCY_ENABLE=0" >> $GITHUB_ENV
|
echo "PERCY_ENABLE=0" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -87,8 +87,8 @@ jobs:
|
||||||
cypress/synapselogs
|
cypress/synapselogs
|
||||||
|
|
||||||
- name: Store benchmark result
|
- name: Store benchmark result
|
||||||
if: github.ref == 'refs/heads/develop'
|
if: github.event.workflow_run.event != 'pull_request'
|
||||||
uses: matrix-org/github-action-benchmark@jsperfentry-1
|
uses: matrix-org/github-action-benchmark@jsperfentry-5
|
||||||
with:
|
with:
|
||||||
name: Cypress measurements
|
name: Cypress measurements
|
||||||
tool: 'jsperformanceentry'
|
tool: 'jsperformanceentry'
|
||||||
|
@ -98,4 +98,4 @@ jobs:
|
||||||
fail-on-alert: false
|
fail-on-alert: false
|
||||||
comment-on-alert: false
|
comment-on-alert: false
|
||||||
github-token: ${{ secrets.DEPLOY_GH_PAGES }}
|
github-token: ${{ secrets.DEPLOY_GH_PAGES }}
|
||||||
auto-push: ${{ github.ref == 'refs/heads/develop' }}
|
auto-push: ${{ github.event.workflow_run.event != 'pull_request' }}
|
||||||
|
|
Loading…
Reference in a new issue