Skip to content

Commit 74cb66c

Browse files
ci: fetch ocv ref before PR scan
1 parent d45c01e commit 74cb66c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/sync-upstream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
fi
5252
5353
prs=$(mktemp)
54-
git fetch origin ocv
54+
git fetch origin ocv:refs/remotes/origin/ocv
5555
scan_ref=$(git rev-parse --verify --quiet origin/ocv >/dev/null && printf origin/ocv || printf HEAD)
5656
git log --first-parent --reverse --format='%H' "$previous..$scan_ref" | while read -r sha; do
5757
pull_requests=$(gh api "repos/${{ github.repository }}/commits/$sha/pulls" -q '.[] | select(.base.ref == "ocv") | "#\(.number) \(.title)"' 2>/dev/null || true)

0 commit comments

Comments
 (0)