From 888b4d0158a05caf762dcfa69477f3b40a39c896 Mon Sep 17 00:00:00 2001 From: "E. Lynette Rayle" Date: Thu, 29 May 2025 19:23:09 +0000 Subject: [PATCH] improve comments about the sha and ref inputs --- src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 990a4c4..a3ca61b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -119,15 +119,17 @@ async function main () { }) snapshot.addManifest(manifest) + // only override the sha if the input has a value + // otherwise, continue to use the sha set from the context in the Snapshot constructor const inputSHA = core.getInput('sha') if (inputSHA !== '') { - // only set the SHA if it is not empty; otherwise, use the SHA from the context snapshot.sha = inputSHA } + // only override the ref if the input has a value + // otherwise, continue to use the ref set from the context in the Snapshot constructor const inputRef = core.getInput('ref') if (inputRef !== '') { - // only set the ref if it is not empty; otherwise, use the ref from the context snapshot.ref = inputRef }