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
4 changes: 2 additions & 2 deletions .github/actions/upload-packages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ runs:
sha256=$(shasum -a 256 $dir/*.zip | awk '{print $1}')

# Only copy if binary doesn't exist
if aws s3api head-object --bucket ${{ inputs.BREW_S3_BUCKET }} --key homebrew/$dir >/dev/null 2>&1;
then
if aws s3api head-object --bucket ${{ inputs.BREW_S3_BUCKET }} --key homebrew/$dir >/dev/null 2>&1 && \
[ "${{ inputs.release_type }}" = "public" ]; then
echo "Error: Binary $dir already exists in S3. Public releases cannot overwrite existing packages."
echo "Please check if this release has already been published."
exit 1
Expand Down
Loading