File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ echo -e "${GREEN}[INFO]${NC} All prerequisites satisfied"
104
104
echo -e " ${YELLOW} [INFO]${NC} Fetching PR preview folders from gh-pages branch..."
105
105
106
106
# Get the list of pr-XXXXX folders from gh-pages branch
107
- PR_FOLDERS=$( gh api repos/" ${REPOSITORY} " /contents/docs/pr-preview \
107
+ PR_FOLDERS=$( gh api repos/" ${REPOSITORY} " /contents/docs/pr-preview? ref=gh-pages \
108
108
--header " Accept: application/vnd.github+json" \
109
109
--jq ' .[] | select(.type == "dir" and (.name | test("^pr-[0-9]+$"))) | .name' \
110
- --field ref=gh-pages 2> /dev/null || true)
110
+ 2> /dev/null || true)
111
111
112
112
if [[ -z " $PR_FOLDERS " ]]; then
113
113
echo -e " ${YELLOW} [INFO]${NC} No PR preview folders found in gh-pages branch"
You can’t perform that action at this time.
0 commit comments