Skip to content

Commit 46cbfc9

Browse files
authored
Fix paginated return of packages in collect-source.yml workflow (#1477)
1 parent 61cc6bc commit 46cbfc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/collect-source.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ jobs:
2424
run: |
2525
# Get all container images and
2626
# exclude 'geti/helm/' packages from the list of container packages for source collection
27-
PACKAGES=$(gh api -H "Accept: application/vnd.github.v3+json" \
27+
PACKAGES=$(gh api --paginate -H "Accept: application/vnd.github.v3+json" \
2828
/orgs/open-edge-platform/packages?package_type=container \
29-
--jq '.[].name' 2>/dev/null | awk '/^geti\// && !/^geti\/helm\//')
29+
--jq '.[].name' 2>/dev/null | awk '/^geti\// && !/^geti\/helm\// && !/^geti\/builders\//' | sort)
3030
3131
# Retrieve container images with specified input tag
3232
for PACKAGE in $PACKAGES; do
3333
echo "Processing package: $PACKAGE"
3434
TMP_NAME=$(sed 's/\//%2F/g' <<< "$PACKAGE")
35-
VERSION=$(gh api -H "Accept: application/vnd.github.v3+json" \
35+
VERSION=$(gh api --paginate -H "Accept: application/vnd.github.v3+json" \
3636
/orgs/open-edge-platform/packages/container/$TMP_NAME/versions \
37-
--jq '.[].metadata.container.tags[]' 2>/dev/null | grep -w "$TAG" || true)
37+
--jq '.[].metadata.container.tags[]' 2>/dev/null | grep -x "$TAG" || true)
3838
3939
if [ -n "$VERSION" ]; then
4040
IMAGE_URI="ghcr.io/open-edge-platform/$PACKAGE:$TAG"

0 commit comments

Comments
 (0)