Skip to content

Fix: Error when multiple drafts found open in the repository - #41

Merged
keanjapesan merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:update-action
Nov 24, 2025
Merged

keanjapesan merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:update-action

Conversation

@ModeSevenIndustrialSolutions

Copy link
Copy Markdown
Member

The action can fail with the error below:

Run # Capture draft releases in repository
jq: error (at :1): Cannot iterate over number (1) Error: Process completed with exit code 5.

If the pushed tag matches a draft release, the action will now promote the release. If other draft releases exist and are not matched, the action will now output a warning to the console/job and GITHUB_STEP_SUMMARY output.

To facilitate future testing, the action now has a dry-run mode which will validate the action operation, but not actually promote the release.

This comment was marked as outdated.

The action can fail with the error below:

Run # Capture draft releases in repository
jq: error (at <stdin>:1): Cannot iterate over number (1)
Error: Process completed with exit code 5.

If the pushed tag matches a draft release, the action will now promote the
release. If other draft releases exist and are not matched, the action will
now output a warning to the console/job and GITHUB_STEP_SUMMARY output.

To facilitate future testing, the action now has a dry-run mode which will
validate the action operation, but not actually promote the release.

Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ModeSevenIndustrialSolutions

Copy link
Copy Markdown
Member Author

Tested downstream here with duplicate drafts:
https://github.com/ModeSevenIndustrialSolutions/test-release-process/actions/runs/19510008819

@keanjapesan
keanjapesan merged commit de702c0 into lfreleng-actions:main Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants