Skip to content

chore(ci): Add workflow to re-list unlisted NuGet packages#400

Merged
currantw merged 2 commits into
valkey-io:mainfrom
currantw:temp-relist-workflow
May 13, 2026
Merged

chore(ci): Add workflow to re-list unlisted NuGet packages#400
currantw merged 2 commits into
valkey-io:mainfrom
currantw:temp-relist-workflow

Conversation

@currantw
Copy link
Copy Markdown
Collaborator

@currantw currantw commented May 13, 2026

Summary

Add a manual workflow to re-list NuGet packages that were unlisted by the CD pipeline's remove-package-if-validation-fails job (e.g. due to flaky test failures).

Issue Link

⚪ None

Features and Behaviour Changes

  • New relist-package.yml workflow triggered via workflow_dispatch with a version input.
  • Uses the existing NUGET_API_KEY from the Release environment to POST to the NuGet re-list endpoint.
  • Reports success/failure with HTTP status code.

Implementation

NuGet supports re-listing via POST https://www.nuget.org/api/v2/package/{ID}/{VERSION} with the same API key used for publish/unlist. This workflow wraps that call with proper error handling.

Limitations

  • Only works for packages that were unlisted.
  • Requires the Release environment approval (same as publish).

Testing

⚪ Cannot be tested without actually unlisting a package.

Related Issues

⚪ None

Checklist

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated and all checks pass.
  • CHANGELOG.md, README.md, DEVELOPER.md, and other documentation files are updated.
  • Destination branch is correct - main or release
  • Create merge commit if merging release branch into main, squash otherwise.

Add a manual workflow_dispatch workflow that POSTs to the NuGet re-list
endpoint using the existing NUGET_API_KEY secret from the Release
environment. This allows re-listing packages that were unlisted by the
CD pipeline's remove-package-if-validation-fails job (e.g. due to
flaky test failures) without needing direct access to the nuget.org
web UI.

Signed-off-by: currantw <taylor.curran@improving.com>
@currantw currantw self-assigned this May 13, 2026
@currantw currantw requested review from alexr-bq and xShinnRyuu May 13, 2026 21:23
@currantw currantw added ci CI/CD pipelines and GitHub Actions dev Internal changes like cleanup, refactoring, or developer tools. labels May 13, 2026
Signed-off-by: currantw <taylor.curran@improving.com>
Copy link
Copy Markdown
Collaborator

@xShinnRyuu xShinnRyuu left a comment

Choose a reason for hiding this comment

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

LGTM

@currantw currantw merged commit 05c79b7 into valkey-io:main May 13, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD pipelines and GitHub Actions dev Internal changes like cleanup, refactoring, or developer tools.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants