Skip to content

Commit a5e14a8

Browse files
committed
Validate files contain at least one byte before uploading
Signed-off-by: Tobias Wolf <wolf@b1-systems.de> On-behalf-of: SAP <tobias.wolf@sap.com>
1 parent e7c3488 commit a5e14a8

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Installs the given GardenLinux Python library
44
inputs:
55
version:
66
description: GardenLinux Python library version
7-
default: "0.10.17"
7+
default: "0.10.18"
88
python_version:
99
description: Python version to setup
1010
default: "3.13"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gardenlinux"
3-
version = "0.10.17"
3+
version = "0.10.18"
44
description = "Contains tools to work with the features directory of gardenlinux, for example deducting dependencies from feature sets or validating cnames"
55
authors = ["Garden Linux Maintainers <contact@gardenlinux.io>"]
66
license = "Apache-2.0"

src/gardenlinux/github/release/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ def upload_to_github_release_page(
7676
)
7777
return
7878

79+
if os.path.getsize(file_to_upload) < 1:
80+
LOGGER.info(f"{file_to_upload} is empty and will be ignored")
81+
return
82+
7983
token = os.environ.get("GITHUB_TOKEN")
8084
if not token:
8185
raise ValueError("GITHUB_TOKEN environment variable not set")

0 commit comments

Comments
 (0)