Skip to content

Commit d355bca

Browse files
Refactor command to fetch previous cksolo release tag
1 parent 6ae2941 commit d355bca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/cksolo-build-publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ jobs:
113113
mkdir -p _artifacts
114114
115115
# Find previous cksolo release in this repo (if any) and get its upstream SHA
116-
prev_tag=$(gh release list --limit 200 --json tagName,isDraft,isPrerelease,publishedAt \
117-
--jq '[.[] | select(.tagName | startswith("cksolo-")) | select(.isDraft==false and .isPrerelease==false)] \
118-
| sort_by(.publishedAt) | last // empty | .tagName')
116+
prev_tag=$(gh release list --limit 200 --json tagName,isDraft,isPrerelease,publishedAt --jq '[.[] | select(.tagName | startswith("cksolo-")) | select(.isDraft==false and .isPrerelease==false)] | sort_by(.publishedAt) | last // empty | .tagName')
119117
if [ -n "${prev_tag:-}" ]; then
120118
echo "Prev release: $prev_tag"
121119
gh release download "$prev_tag" -p upstream-fullsha.txt -O _artifacts/prev-upstream-fullsha.txt

0 commit comments

Comments
 (0)