We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0caf8b commit 5e3d827Copy full SHA for 5e3d827
.github/workflows/update-tika-version.yaml
@@ -41,8 +41,15 @@ jobs:
41
if [ -n "${{ github.event.inputs.tag }}" ]; then
42
NEW_TAG="${{ github.event.inputs.tag }}"
43
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' \
+ RESPONSE=$(curl -sf "https://hub.docker.com/v2/repositories/apache/tika/tags?page_size=10&ordering=last_updated") || {
+ 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" \
53
| grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+-full$' \
54
| sort -V \
55
| tail -1)
0 commit comments