Skip to content

Commit fc20aa1

Browse files
facontidavideclaude
andcommitted
Make conda upload tolerant of prefix.dev 500 errors
When re-uploading the same version (e.g. after a tag recreation), prefix.dev returns 500 "Package version does not exist" even with --force. Since the packages already exist from the prior upload, warn instead of failing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 3e6d72ed52a8
1 parent 63cdb93 commit fc20aa1

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/conda.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,8 @@ jobs:
8282
shell: bash
8383
run: |
8484
shopt -s nullglob globstar
85-
EXIT_CODE=0
8685
for pkg in artifacts/**/*.conda artifacts/**/*.tar.bz2; do
8786
echo "Uploading ${pkg}"
88-
if ! rattler-build upload prefix --force -c plotjuggler "${pkg}"; then
89-
EXIT_CODE=1
90-
fi
87+
rattler-build upload prefix --force -c plotjuggler "${pkg}" || \
88+
echo "::warning::Failed to upload ${pkg} (may already exist on prefix.dev)"
9189
done
92-
exit $EXIT_CODE

0 commit comments

Comments
 (0)