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

View File

@@ -120,8 +120,8 @@ async function main () {
}
)
snapshot.addManifest(manifest)
snapshot.sha = core.getInput('snapshot-sha', getShaFromContext())
snapshot.ref = core.getInput('snapshot-ref', github.context.ref)
snapshot.sha = core.getInput('snapshot-sha') && getShaFromContext()
snapshot.ref = core.getInput('snapshot-ref') && github.context.ref
submitSnapshot(snapshot)
}