mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-09-22 11:54:40 +00:00
fix: handle empty releases list in draft cleanup step (#578)
When a new project has no releases yet, `gh api repos/{owner}/{repo}/releases`
returns empty JSON, causing `xargs` to fail with exit code 123:
"unexpected end of JSON input".
use xargs -r instead of explicit empty check for draft cleanup
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -242,7 +242,7 @@ jobs:
|
||||
run: |
|
||||
gh api repos/{owner}/{repo}/releases \
|
||||
--jq '.[] | select(.draft == true) | .id' \
|
||||
| xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
|
||||
| xargs -r -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
|
||||
|
||||
# Create a new release draft which is not publicly visible and requires manual acceptance
|
||||
- name: Create Release Draft
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
|
||||
## [2.4.1] - 2026-03-20
|
||||
|
||||
### Fixed
|
||||
|
||||
- GitHub Actions: handle empty releases list in draft cleanup step using `xargs -r`
|
||||
|
||||
### Changed
|
||||
|
||||
- Upgrade Gradle Wrapper to `9.4.1`
|
||||
|
||||
Reference in New Issue
Block a user