Skip to content

Commit 9298afe

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1d85996 commit 9298afe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/pre-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
- name: Clean up old pre-releases
123123
run: |
124124
# Keep only the last 5 pre-releases
125-
gh release list --limit 20 --json tagName,isPrerelease --jq '.[] | select(.isPrerelease == true) | .tagName' | tail -n +6 | while read tag; do
125+
gh release list --limit 20 --json tagName,isPrerelease --jq '.[] | select(.isPrerelease == true) | .tagName' | head -n -5 | while read tag; do
126126
echo "Deleting old pre-release: $tag"
127127
gh release delete "$tag" --yes || true
128128
done

0 commit comments

Comments
 (0)