Skip to content

Commit bceded4

Browse files
committed
fix push workflow
1 parent fd072ea commit bceded4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/maven-push-3.0.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
echo "generators version not found"
106106
rm -f maven-metadata.json
107107
curl -o maven-metadata.json -s --max-time 60 --retry 15 --connect-timeout 30 -H "accept: application/json" https://oss.sonatype.org/service/local/repositories/snapshots/content/io/swagger/codegen/v3/swagger-codegen-generators/
108-
LAST_SNAP='[.data | sort_by(.lastModified) | reverse | .[] | select( .text | contains("1."))]| .[0].text' maven-metadata.json`
108+
LAST_SNAP=`jq '[.data | sort_by(.lastModified) | reverse | .[] | select( .text | contains("1."))]| .[0].text' maven-metadata.json`
109109
export LAST_SNAP=${LAST_SNAP:1:${#LAST_SNAP}-2}
110110
echo "LAST_SNAP $LAST_SNAP"
111111
export GENERATORS_VERSION_PROPERTY=-Dswagger-codegen-generators-version=$LAST_SNAP

0 commit comments

Comments
 (0)