set default for sha & ref

This commit is contained in:
E. Lynette Rayle
2025-05-28 18:30:40 +00:00
parent 3e507a8464
commit 3a3b0da726
+2 -2
View File
@@ -120,8 +120,8 @@ async function main () {
} }
) )
snapshot.addManifest(manifest) snapshot.addManifest(manifest)
snapshot.sha = core.getInput('snapshot-sha', getShaFromContext()) snapshot.sha = core.getInput('snapshot-sha') && getShaFromContext()
snapshot.ref = core.getInput('snapshot-ref', github.context.ref) snapshot.ref = core.getInput('snapshot-ref') && github.context.ref
submitSnapshot(snapshot) submitSnapshot(snapshot)
} }