Skip to content

Commit 4203696

Browse files
committed
Handle case where no files have changed
1 parent 2b7f35c commit 4203696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def main():
244244
posts_directory = Path(os.environ.get("POSTS_DIRECTORY", ""))
245245
publication_host = os.environ["PUBLICATION_HOST"]
246246

247-
changed_files = json.loads(os.environ["CHANGED_FILES"])
247+
changed_files = json.loads(os.environ["CHANGED_FILES"] or "{}")
248248
repo = os.environ["GITHUB_REPOSITORY"]
249249
branch = os.environ["GITHUB_REF"].split("/")[-1]
250250
added_files = [Path(f) for f in changed_files.get("added_files", [])]

0 commit comments

Comments
 (0)