diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d18a3e345..ec460d942a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,7 @@ jobs: run: | OTHER_REPO="oneapi-src/oneDAL" WF_NAME="Nightly-build" - gh run --repo ${OTHER_REPO} list --workflow "${WF_NAME}" --json databaseId --status success --jq '.[]' + gh run --repo ${OTHER_REPO} list --workflow "${WF_NAME}" --json databaseId,event --status success --jq '.[]' RUN_ID=`gh run --repo ${OTHER_REPO} list --workflow "${WF_NAME}" --json databaseId --status success --jq '.[] | select(.event == "workflow_dispatch" or .event == "schedule") | .[0].databaseId'` echo "Detected latest run id of ${RUN_ID} for workflow ${WF_NAME}" echo "run-id=${RUN_ID}" >> "$GITHUB_OUTPUT"