Compare commits

...

2 Commits

Author SHA1 Message Date
6da833aaab Only on release 2023-11-22 17:36:23 -06:00
ee983aae74 Reverse sort 2023-11-22 17:35:44 -06:00
2 changed files with 1 additions and 4 deletions

View File

@ -1,8 +1,5 @@
name: Publish ApplicationRecord to Registry
on:
pull_request:
branches:
- '*'
release:
types: [published]
jobs:

View File

@ -26,7 +26,7 @@ services:
fees: 200000aphoton
EOF
next_ver=$(laconic -c $CONFIG_FILE cns record list --type ApplicationRecord --all --name "$rcd_name" 2>/dev/null | jq -r '.[0].attributes.version' | awk -F. -v OFS=. '{$NF += 1 ; print}')
next_ver=$(laconic -c $CONFIG_FILE cns record list --type ApplicationRecord --all --name "$rcd_name" 2>/dev/null | jq -s '.[] | sort_by(.createTime) | reverse' | jq -r '.[0].attributes.version' | awk -F. -v OFS=. '{$NF += 1 ; print}')
cat <<EOF | sed '/.*: ""$/d' > "$RECORD_FILE"
record: