Skip to content

Commit 304deca

Browse files
committed
Change to use github query syntax
1 parent fd5547f commit 304deca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/nightly-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.NIGHTLY_BUILD_GH_TOKEN }}
3030
run: |
31-
gh release list -R ${{ github.repository}} | grep nightly | tail +2 | awk '{ print $5}' | xargs -n 1 gh release delete -R ${{ github.repository}} -y --cleanup-tag
31+
gh release list -R ${{ github.repository }} --json 'name,tagName' --jq '.[] | select(.tagName | startswith("nightly"))|.tagName' | tail +2 | xargs -n 1 gh release delete -R ${{ github.repository}} -y --cleanup-tag

0 commit comments

Comments
 (0)