Skip to content

Commit 5e3d827

Browse files
committed
TIKA-4660 Add automated Tika Docker image version bump workflow and upgrade all GitHub Actions
1 parent c0caf8b commit 5e3d827

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/update-tika-version.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,15 @@ jobs:
4141
if [ -n "${{ github.event.inputs.tag }}" ]; then
4242
NEW_TAG="${{ github.event.inputs.tag }}"
4343
else
44-
NEW_TAG=$(curl -s "https://hub.docker.com/v2/repositories/apache/tika/tags?page_size=10&ordering=-last_updated" \
45-
| jq -r '.results[].name' \
44+
RESPONSE=$(curl -sf "https://hub.docker.com/v2/repositories/apache/tika/tags?page_size=10&ordering=last_updated") || {
45+
echo "::error::Failed to fetch tags from DockerHub API"
46+
exit 1
47+
}
48+
49+
ALL_TAGS=$(echo "$RESPONSE" | jq -r '.results[].name')
50+
echo "Tags returned by DockerHub: $ALL_TAGS"
51+
52+
NEW_TAG=$(echo "$ALL_TAGS" \
4653
| grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+-full$' \
4754
| sort -V \
4855
| tail -1)

0 commit comments

Comments
 (0)