mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-22 00:21:08 -05:00
🚑 Invert the dists-to-attest validity check
Some checks failed
🧪 / smoke-test (push) Has been cancelled
Some checks failed
🧪 / smoke-test (push) Has been cancelled
This bug sneaked into #236 but should not affect many people as the attestations generation feature is experimental and opt-in. Fixes #256
This commit is contained in:
parent
8a08d61689
commit
0ab0b79471
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ def collect_dists(packages_dir: Path) -> list[Path]:
|
||||||
|
|
||||||
# Make sure everything that looks like a dist actually is one.
|
# Make sure everything that looks like a dist actually is one.
|
||||||
# We do this up-front to prevent partial signing.
|
# We do this up-front to prevent partial signing.
|
||||||
if (invalid_dists := [path for path in dist_paths if path.is_file()]):
|
if (invalid_dists := [path for path in dist_paths if not path.is_file()]):
|
||||||
invalid_dist_list = ', '.join(map(str, invalid_dists))
|
invalid_dist_list = ', '.join(map(str, invalid_dists))
|
||||||
die(
|
die(
|
||||||
'The following paths look like distributions but '
|
'The following paths look like distributions but '
|
||||||
|
|
Loading…
Reference in a new issue