Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ jobs:
release:
name: Version
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
pull-requests: write
id-token: write
Comment on lines +15 to +19

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid triggering a second PyPI upload for same release

Granting release OIDC permissions here makes wevm/changelogs able to publish from the release job, and that action sets published=true when it uploads. In this workflow, that output immediately triggers the separate publish job (if: needs.release.outputs.published == 'true'), which attempts to upload the same version again via pypa/gh-action-pypi-publish; its default is to fail on duplicates (skip-existing is disabled by default), so successful releases can still end in a failed workflow run.

Useful? React with 👍 / 👎.

outputs:
published: ${{ steps.changelogs.outputs.published }}
steps:
Expand Down