Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust authored Oct 31, 2024
1 parent 40862d7 commit 9f27e0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ jobs:
run: |
OTHER_REPO="oneapi-src/oneDAL"
WF_NAME="Nightly-build"
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'`
RUN_ID=`gh run --repo ${OTHER_REPO} list --workflow "${WF_NAME}" --json databaseId,event --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"
env:
Expand Down Expand Up @@ -162,7 +161,7 @@ jobs:
run: |
OTHER_REPO="icfaust/oneDAL"
WF_NAME="Nightly-build"
RUN_ID=`gh run --repo ${OTHER_REPO} list --workflow "${WF_NAME}" --json databaseId --status success --jq .[0].databaseId`
RUN_ID=`gh run --repo ${OTHER_REPO} list --workflow "${WF_NAME}" --json databaseId,event --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"
env:
Expand Down

0 comments on commit 9f27e0f

Please sign in to comment.