diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index f3f7d26a5f8..885f2785645 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -66,7 +66,7 @@ jobs: uses: ./.github/actions/setup - name: 'Download reference report' run: | - RUN_ID=`gh run list --repo ${{ github.repository }} --branch ${{ github.base_ref }} --workflow ${{ github.workflow }} --json databaseId --jq '.[0].databaseId'` + RUN_ID=`gh run list --repo ${{ github.repository }} --branch ${{ github.base_ref }} --workflow ${{ github.workflow }} --json conclusion,databaseId --jq 'map(select(.conclusion == "success"))[0].databaseId' gh run download ${RUN_ID} --repo ${{ github.repository }} -n gasreport env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}