Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(artifact): downgrade zero-byte upload warning to debug#2412

Open
jjoseph456 wants to merge 1 commit into
actions:main from
jjoseph456:fix/artifact-zero-byte-warning
Open

fix(artifact): downgrade zero-byte upload warning to debug #2412
jjoseph456 wants to merge 1 commit into
actions:main from
jjoseph456:fix/artifact-zero-byte-warning

Conversation

@jjoseph456

@jjoseph456 jjoseph456 commented May 18, 2026

Copy link
Copy Markdown

Problem

When uploading a zero-byte file with skipArchive: true, a warning is emitted even though the upload completes successfully:

Warning: No data was uploaded to blob storage. Reported upload byte count is 0.

Zero-byte files are a valid use case (marker files, lock files, empty placeholders) and the upload finalizes correctly with size: 0.

Fix

Downgrade core.warning() to core.debug() so the message remains available for troubleshooting but doesn't pollute workflow output for legitimate zero-byte uploads.

Related

Fixes #2333
Related: actions/upload-artifact#777

When uploading a zero-byte file with skipArchive:true, a spurious warning
is emitted even though the upload completes successfully. Zero-byte files
are a valid use case (e.g. marker files, lock files) and the upload is
finalized correctly with size 0.
Downgrade from core.warning() to core.debug() so the message is still
available for troubleshooting but doesn't pollute workflow output.
Fixes actions#2333
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 18, 2026 20:10
@jjoseph456 jjoseph456 requested a review from a team as a code owner May 18, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Awaiting requested review from Copilot

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[artifact] uploadArtifact({skipArchive:true}) warns when uploading zero-byte file

1 participant

AltStyle によって変換されたページ (->オリジナル) /