Skip to content

Commit af41cba

Browse files
Copilotpelikhan
andauthored
Fix ci-coach workflow: add explicit repo specification to gh CLI commands (#6099)
* Initial plan * Plan to fix ci-coach workflow pre-download step Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Fix ci-coach workflow by adding explicit repository specification to gh CLI commands Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
1 parent 2155486 commit af41cba

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/ci-coach.lock.yml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/ci-coach.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ steps:
2323
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424
run: |
2525
# Download workflow runs for the ci workflow
26-
gh run list --workflow=ci.yml --limit 100 --json databaseId,status,conclusion,createdAt,updatedAt,displayTitle,headBranch,event,url,workflowDatabaseId,runNumber > /tmp/ci-runs.json
26+
gh run list --repo ${{ github.repository }} --workflow=ci.yml --limit 100 --json databaseId,status,conclusion,createdAt,updatedAt,displayTitle,headBranch,event,url,workflowDatabaseId,runNumber > /tmp/ci-runs.json
2727
2828
# Create directory for artifacts
2929
mkdir -p /tmp/ci-artifacts
3030
3131
# Download artifacts from recent runs (last 5 successful runs)
3232
echo "Downloading artifacts from recent CI runs..."
33-
gh run list --workflow=ci.yml --status success --limit 5 --json databaseId | jq -r '.[].databaseId' | while read run_id; do
33+
gh run list --repo ${{ github.repository }} --workflow=ci.yml --status success --limit 5 --json databaseId | jq -r '.[].databaseId' | while read run_id; do
3434
echo "Processing run $run_id"
35-
gh run download "$run_id" --dir "/tmp/ci-artifacts/$run_id" 2>/dev/null || echo "No artifacts for run $run_id"
35+
gh run download "$run_id" --repo ${{ github.repository }} --dir "/tmp/ci-artifacts/$run_id" 2>/dev/null || echo "No artifacts for run $run_id"
3636
done
3737
3838
echo "CI runs data saved to /tmp/ci-runs.json"

0 commit comments

Comments
 (0)