Skip to content

Commit 7438c6e

Browse files
committed
Fix date parser in release script
1 parent f3b5994 commit 7438c6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/scripts/on-release.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ PACKAGE_JSON_TEMPLATE="$OUTPUT_DIR/package-$LIBS_PROJ_NAME.json"
312312
## TEMP WORKAROUND FOR RV32 LONG PATH ON WINDOWS
313313
##
314314
RVTC_VERSION=`cat $PACKAGE_JSON_TEMPLATE | jq -r ".packages[0].platforms[0].toolsDependencies[] | select(.name == \"$RVTC_NAME\") | .version" | cut -d '_' -f 2`
315-
RVTC_VERSION=`date -j -f '%Y%m%d' "$RVTC_VERSION" '+%y%m'`
315+
# RVTC_VERSION=`date -j -f '%Y%m%d' "$RVTC_VERSION" '+%y%m'` # MacOS
316+
RVTC_VERSION=`date -d "$RVTC_VERSION" '+%y%m'`
316317
rvtc_jq_arg="\
317318
(.packages[0].platforms[0].toolsDependencies[] | select(.name==\"$RVTC_NAME\")).version = \"$RVTC_VERSION\" |\
318319
(.packages[0].platforms[0].toolsDependencies[] | select(.name==\"$RVTC_NAME\")).name = \"$RVTC_NEW_NAME\" |\

0 commit comments

Comments
 (0)