diff --git a/.github/workflows/js-benchmarks.yml b/.github/workflows/js-benchmarks.yml index 438fbf1826..d32efe4e88 100644 --- a/.github/workflows/js-benchmarks.yml +++ b/.github/workflows/js-benchmarks.yml @@ -4,8 +4,7 @@ on: workflow_run: workflows: ['Package the js repl as a binary artifact'] branches: [master] - types: - - completed + types: [completed] jobs: js-benchmarks: @@ -25,6 +24,10 @@ jobs: arch: 'arm64' package_type: 'macOS-universal2' + permissions: + actions: read + contents: read + steps: - name: 'Checkout LadybirdBrowser/js-benchmarks' uses: actions/checkout@v4 @@ -43,8 +46,7 @@ jobs: id: download-artifact uses: dawidd6/action-download-artifact@v9 with: - workflow: js-artifacts.yml - commit: ${{ github.event.workflow_run.head_sha }} + run_id: ${{ github.event.workflow_run.id }} name: ladybird-js-${{ matrix.package_type }} path: js-repl @@ -77,7 +79,8 @@ jobs: "commit": "${{ github.event.workflow_run.head_sha }}", "os": "${{ matrix.os_name }}", "arch": "${{ matrix.arch }}", - "artifact": "js-benchmarks-results-${{ matrix.os_name }}-${{ matrix.arch }}" + "artifact": "js-benchmarks-results-${{ matrix.os_name }}-${{ matrix.arch }}", + "artifact_run_id": "${{ github.run_id }}" }' > request.json curl \ --fail \