mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 22:30:49 +08:00
ci: correctly pull the latest results in case it's a PR
This commit is contained in:
@@ -46,11 +46,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Download Results
|
- name: Download Results from master
|
||||||
|
if: ${{ github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'master' }}
|
||||||
uses: dawidd6/action-download-artifact@v9
|
uses: dawidd6/action-download-artifact@v9
|
||||||
with:
|
with:
|
||||||
workflow: perf_emulation.yml
|
workflow: perf_emulation.yml
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
allow_forks: false
|
||||||
|
|
||||||
|
|
||||||
|
- name: Download Results from PR
|
||||||
|
if: ${{ github.event.workflow_run.event == 'pull_request' }}
|
||||||
|
uses: dawidd6/action-download-artifact@v9
|
||||||
|
with:
|
||||||
|
workflow: perf_emulation.yml
|
||||||
|
path: artifacts
|
||||||
|
# The artifact needs to be downloaded from a PR run that comes from a forked repository
|
||||||
|
allow_forks: true
|
||||||
|
|
||||||
- name: Move JSON files to a single folder
|
- name: Move JSON files to a single folder
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user