Skip to content

Commit cd604a5

Browse files
ci: fix Fern devnotes artifact lookup (#667)
1 parent 765fccf commit cd604a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-fern-devnotes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ jobs:
101101
workflow="$1"
102102
shift
103103
104-
last_run_id=$(gh run list --workflow "$workflow" --status success "$@" --limit 1 --json databaseId -q '.[0].databaseId // empty' 2>/dev/null || true)
105-
if [ -n "$last_run_id" ] && gh run download "$last_run_id" --name notebooks --dir website/docs/notebooks; then
104+
last_run_id=$(gh run list --repo "$GITHUB_REPOSITORY" --workflow "$workflow" --status success "$@" --limit 1 --json databaseId -q '.[0].databaseId // empty' 2>/dev/null || true)
105+
if [ -n "$last_run_id" ] && gh run download "$last_run_id" --repo "$GITHUB_REPOSITORY" --name notebooks --dir website/docs/notebooks; then
106106
echo "::notice::Downloaded notebooks from $workflow run $last_run_id"
107107
exit 0
108108
fi

0 commit comments

Comments
 (0)