We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4aa8b6 commit e9ea991Copy full SHA for e9ea991
1 file changed
.github/workflows/clean_untagged_docker.yml
@@ -102,8 +102,8 @@ jobs:
102
TEMP_FILE="/tmp/all_versions.ndjson"
103
104
> "$TEMP_FILE"
105
-
106
- while [[ -n "$URL" ]]; do
+ PAGE=1
+ while [[ -n "$URL" && $PAGE -le 10 ]]; do
107
echo "Fetching: $URL"
108
109
curl -s -H "Authorization: token $TOKEN" \
@@ -114,6 +114,7 @@ jobs:
114
jq -c '.[]' page.json >> "$TEMP_FILE"
115
116
URL=$(grep -i '^link:' headers.txt | grep -o '<[^>]*>;\s*rel="next"' | sed 's/<\(.*\)>.*/\1/' || true)
117
+ PAGE=$((PAGE + 1))
118
done
119
rm -f headers.txt page.json
120
0 commit comments