Compare commits
2 Commits
cea7e96ffa
...
6da833aaab
Author | SHA1 | Date | |
---|---|---|---|
6da833aaab | |||
ee983aae74 |
@ -1,8 +1,5 @@
|
|||||||
name: Publish ApplicationRecord to Registry
|
name: Publish ApplicationRecord to Registry
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -26,7 +26,7 @@ services:
|
|||||||
fees: 200000aphoton
|
fees: 200000aphoton
|
||||||
EOF
|
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"
|
cat <<EOF | sed '/.*: ""$/d' > "$RECORD_FILE"
|
||||||
record:
|
record:
|
||||||
|
Loading…
Reference in New Issue
Block a user