Skip to content

Commit c6b5d8b

Browse files
Merge branch 'main' into refactor-github-action-docs
2 parents a4636e9 + ce0bdb3 commit c6b5d8b

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ inputs:
5353
outputs:
5454
result:
5555
description: "Base64-encoded JSON containing the results of the grading."
56+
total_score:
57+
description: "Final numeric score (0-100) from the grading pipeline."
5658

5759
# Configures how the action is executed.
5860
runs:

github_action/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ def __retrieve_grading_score(
187187
raise RuntimeError("Failed to get grading result: autograder returned None")
188188
logger.info("Final Score for %s: %s", args.student_name, grading_result.final_score)
189189

190+
github_output = os.getenv("GITHUB_OUTPUT")
191+
if github_output:
192+
with open(github_output, "a", encoding="utf-8") as fh:
193+
fh.write(f"total_score={grading_result.final_score}\n")
194+
190195
return grading_result
191196

192197

0 commit comments

Comments
 (0)