CI: Trigger web-benchmarks workflow on push to master

Previously, the web benchmarks job would only trigger after a
successful CI run.
This commit is contained in:
Tim Ledbetter 2026-04-14 14:22:45 +01:00 committed by Jelle Raaijmakers
parent 236c0b41a5
commit f498cfcfd0

View file

@ -1,10 +1,8 @@
name: 'Web benchmarks'
on:
workflow_run:
workflows: ['CI']
push:
branches: [master]
types: [completed]
env:
LADYBIRD_SOURCE_DIR: ${{ github.workspace }}
@ -14,7 +12,7 @@ env:
jobs:
web-benchmarks:
runs-on: ${{ fromJSON(matrix.runner_labels) }}
if: ${{ github.repository == 'LadybirdBrowser/ladybird' && github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.repository == 'LadybirdBrowser/ladybird' }}
name: ${{ matrix.os_name }}, ${{ matrix.arch }}
strategy:
@ -37,13 +35,13 @@ jobs:
- name: 'Checkout ladybird'
uses: actions/checkout@v6.0.2
with:
ref: ${{ github.event.workflow_run.head_sha }}
ref: ${{ github.sha }}
- name: 'Determine ladybird commit hash'
id: ladybird-commit
shell: bash
run: |
echo "sha=${{ github.event.workflow_run.head_sha }}" >> "${GITHUB_OUTPUT}"
echo "sha=${{ github.sha }}" >> "${GITHUB_OUTPUT}"
- name: 'Checkout LadybirdBrowser/web-benchmarks'
uses: actions/checkout@v6.0.2