Skip to content

chore(ci): support metadata 2.5 publishing - #233

Merged
kartojal merged 5 commits into
mainfrom
dependabot/github_actions/github-actions-major-2820949d80
Aug 13, 2026
Merged

chore(ci): support metadata 2.5 publishing#233
kartojal merged 5 commits into
mainfrom
dependabot/github_actions/github-actions-major-2820949d80

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update pypa/gh-action-pypi-publish to v1.14.2 in both publishing workflows
  • add a guarded manual retry path for an existing published polymarket-client-v* tag
  • keep the recovery scoped to the publishing workflows

Context

The 0.6.0 build emits valid Core Metadata 2.5. The previously pinned publisher rejected that metadata before upload because its Twine version only supported metadata through 2.4. Publisher v1.14.2 adds Metadata 2.5 support.

The retry workflow validates that the requested tag matches polymarket-client-v*, confirms its GitHub release is published, and checks out that immutable tag before building and publishing.

Failed release run: https://github.com/Polymarket/py-sdk/actions/runs/31716824121

Verification

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Aug 5, 2026
…h 5 updates

Bumps the github-actions-major group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `4` | `7` |
| [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `5.4.2` | `9.0.0` |
| [actions/setup-python](https://github.com/actions/setup-python) | `5` | `7` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4` | `7` |
| [googleapis/release-please-action](https://github.com/googleapis/release-please-action) | `4.4.1` | `5.0.0` |



Updates `actions/checkout` from 4 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4...v7)

Updates `astral-sh/setup-uv` from 5.4.2 to 9.0.0
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@d4b2f3b...c771a70)

Updates `actions/setup-python` from 5 to 7
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v5...v7)

Updates `actions/upload-artifact` from 4 to 7
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v7)

Updates `googleapis/release-please-action` from 4.4.1 to 5.0.0
- [Release notes](https://github.com/googleapis/release-please-action/releases)
- [Changelog](https://github.com/googleapis/release-please-action/blob/main/CHANGELOG.md)
- [Commits](googleapis/release-please-action@5c625bf...45996ed)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions-major
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions-major
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions-major
- dependency-name: astral-sh/setup-uv
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions-major
- dependency-name: googleapis/release-please-action
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/github_actions/github-actions-major-2820949d80 branch from 7a4d198 to 4cd6f8b Compare August 10, 2026 13:15
@kartojal kartojal changed the title chore(ci): bump the github-actions-major group across 1 directory with 5 updates fix(ci): update GitHub Actions and support metadata 2.5 publishing Aug 13, 2026
@kartojal

Copy link
Copy Markdown
Contributor

Release recovery update: this branch is now current with main and also pins pypa/gh-action-pypi-publish v1.14.2 (dc37677) in both publishing workflows. v1.14.2 adds support for core metadata 2.5, which blocked the 0.6.0 PyPI upload in run 31716824121 before any files were published.

@kartojal

Copy link
Copy Markdown
Contributor

Also adds a guarded manual retry to the existing trusted publish.yml: it requires a polymarket-client-v* tag, confirms the GitHub release is published, and checks out that immutable release tag before building. This lets us recover the existing 0.6.0 release without moving or recreating its tag.

@kartojal kartojal changed the title fix(ci): update GitHub Actions and support metadata 2.5 publishing fix(ci): support metadata 2.5 publishing Aug 13, 2026
@kartojal kartojal changed the title fix(ci): support metadata 2.5 publishing chore(ci): support metadata 2.5 publishing Aug 13, 2026

@kartojal kartojal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved to recover the confirmed polymarket-client 0.6.0 PyPI publication.

@kartojal
kartojal merged commit 11d5a04 into main Aug 13, 2026
7 checks passed
@kartojal
kartojal deleted the dependabot/github_actions/github-actions-major-2820949d80 branch August 13, 2026 16:00

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1f4f9d5. Configure here.

echo "Invalid release tag: $RELEASE_TAG" >&2
exit 1
fi
gh release view "$RELEASE_TAG" --json isDraft --jq 'select(.isDraft == false)' >/dev/null

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Draft release check never fails

Medium Severity

The published-release guard uses gh ... --jq 'select(.isDraft == false)' and discards the result. When the release is a draft, select emits nothing but gh still exits 0, so the step continues and can build and publish from a draft tag via workflow_dispatch.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1f4f9d5. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant